From 6e4eade3d4c419b16bf37b14fb3e6315b4a4ab6a Mon Sep 17 00:00:00 2001 From: Qualys Security Advisory Date: Thu, 1 Jan 1970 00:00:00 +0000 Subject: [PATCH] pmap: Plug mem- and fd-leak in one_proc(). --- pmap.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.40.0