From a3851c6b9a3ae235ad4a20f50dfaa73bcd7c8735 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Thu, 16 Jul 2009 07:10:04 -0700 Subject: [PATCH] (SIGAR-162) plug possible memory leak in sigar_iodev_get util --- src/sigar_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sigar_util.c b/src/sigar_util.c index fa77a16a..d818a62d 100644 --- a/src/sigar_util.c +++ b/src/sigar_util.c @@ -424,7 +424,7 @@ sigar_iodev_t *sigar_iodev_get(sigar_t *sigar, "[iodev] inode stat(%s) failed", fsp->dir_name); } - return NULL; /* cant cache w/o inode */ + continue; /* cant cache w/o inode */ } ent = sigar_cache_get(sigar->fsdev, SIGAR_FSDEV_ID(sb));