diff --git a/src/os/solaris/solaris_sigar.c b/src/os/solaris/solaris_sigar.c index 4e6a0f0b..7f493119 100644 --- a/src/os/solaris/solaris_sigar.c +++ b/src/os/solaris/solaris_sigar.c @@ -1269,6 +1269,7 @@ static int create_fsdev_cache(sigar_t *sigar) } if (!(mapping = get_fsdev_paths(sigar, &fslist))) { + sigar_file_system_list_destroy(sigar, &fslist); return ENOENT; } @@ -1323,7 +1324,6 @@ static int create_fsdev_cache(sigar_t *sigar) } } - sigar_file_system_list_destroy(sigar, &fslist); return SIGAR_OK;