diff options
| -rw-r--r-- | xlators/debug/io-stats/src/io-stats.c | 6 | 
1 files changed, 6 insertions, 0 deletions
diff --git a/xlators/debug/io-stats/src/io-stats.c b/xlators/debug/io-stats/src/io-stats.c index f5787a710c8..ee9c29e69a0 100644 --- a/xlators/debug/io-stats/src/io-stats.c +++ b/xlators/debug/io-stats/src/io-stats.c @@ -1435,6 +1435,12 @@ init (xlator_t *this)          conf = GF_CALLOC (1, sizeof(*conf), gf_io_stats_mt_ios_conf); +        if (!conf) { +                gf_log (this->name, GF_LOG_ERROR, +                        "Out of memory."); +                return -1; +        } +          LOCK_INIT (&conf->lock);          gettimeofday (&conf->cumulative.started_at, NULL);  | 
