commit: 75ab6c592861c877e8b9b477170b46c4e8922b2a
Author: Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Mon Jun 20 02:59:29 2016 +0000
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Mon Jun 20 02:59:29 2016 +0000
URL: https://gitweb.gentoo.org/proj/pax-utils.git/commit/?id=75ab6c59
pspax: fix file leakage when reading the command line
pspax.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/pspax.c b/pspax.c
index 67b7678..c10688f 100644
--- a/pspax.c
+++ b/pspax.c
@@ -88,6 +88,8 @@ static char *get_proc_name_cmdline(int pfd)
fclose(fp);
return NULL;
}
+ fclose(fp);
+
return (str);
}