[PATCH 1/2] smemcap: close /proc handle upon cleaning up

Denys Vlasenko vda.linux at googlemail.com
Fri Oct 22 11:19:10 UTC 2010


On Thu, Oct 21, 2010 at 10:44 PM, Alexander Shishkin <virtuoso at slind.org> wrote:
> Signed-off-by: Alexander Shishkin <virtuoso at slind.org>
> ---
>  procps/smemcap.c |    3 +++
>  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;
>  }
> --
> 1.7.2.1.45.gb66c2


Applied, thanks!
-- 
vda


More information about the busybox mailing list