From: Qualys Security Advisory Date: Thu, 1 Jan 1970 00:00:00 +0000 (+0000) Subject: pmap: Plug mem- and fd-leak in one_proc(). X-Git-Tag: v3.3.15~48 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6e4eade3d4c419b16bf37b14fb3e6315b4a4ab6a;p=procps-ng pmap: Plug mem- and fd-leak in one_proc(). --- diff --git a/pmap.c b/pmap.c index ae1aea99..569c10ee 100644 --- a/pmap.c +++ b/pmap.c @@ -547,6 +547,7 @@ static int one_proc(proc_t * p) if (X_option || c_option) { print_extended_maps(fp); + fclose(fp); return 0; }