summaryrefslogtreecommitdiff
path: root/procps
diff options
context:
space:
mode:
authorAlexander Shishkin2010-10-21 23:44:47 +0300
committerDenys Vlasenko2010-10-22 13:18:23 +0200
commitcbfeaac7afe31323d46c52da3b98a949232d708e (patch)
tree77192fd9065184823bc33fcc09276a96630d0411 /procps
parent46b6cd763053a929680500d5ce7a347adbc608a4 (diff)
downloadbusybox-cbfeaac7afe31323d46c52da3b98a949232d708e.zip
busybox-cbfeaac7afe31323d46c52da3b98a949232d708e.tar.gz
smemcap: close /proc handle upon cleaning up
Signed-off-by: Alexander Shishkin <virtuoso@slind.org> Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'procps')
-rw-r--r--procps/smemcap.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/procps/smemcap.c b/procps/smemcap.c
index f951a5f..196c91f 100644
--- a/procps/smemcap.c
+++ b/procps/smemcap.c
@@ -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;
}