(SIGAR-136) plug memory leak in sigar_file_system_list_get

Signed-off-by: Doug MacEachern <dougm@hyperic.com>
This commit is contained in:
Jan Kneschke authored and Doug MacEachern committed 2009-02-06 17:15:36 -08:00
1 parent f0ef330989
commit b48fd1e62f
1 file changed
+2
+2
View File
@@ -1983,6 +1983,7 @@ int sigar_file_system_list_get(sigar_t *sigar,
fs = malloc(len);
if ((num = sigar_getfsstat(fs, len, MNT_NOWAIT)) < 0) {
free(fs);
return errno;
}
@@ -2026,6 +2027,7 @@ int sigar_file_system_list_get(sigar_t *sigar,
sigar_fs_type_init(fsp);
}
free(fs);
return SIGAR_OK;
}