(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 2009-01-26 12:21:09 -08:00 committed by Doug MacEachern
parent f0ef330989
commit b48fd1e62f

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;
}