smemcap: close /proc handle upon cleaning up

Signed-off-by: Alexander Shishkin <virtuoso@slind.org>
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
This commit is contained in:
Alexander Shishkin 2010-10-21 23:44:47 +03:00 committed by Denys Vlasenko
parent 46b6cd7630
commit cbfeaac7af

View File

@ -125,5 +125,8 @@ int smemcap_main(int argc UNUSED_PARAM, char **argv UNUSED_PARAM)
}
}
if (ENABLE_FEATURE_CLEAN_UP)
closedir(d);
return EXIT_SUCCESS;
}