aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2016-06-19 22:59:29 -0400
committerMike Frysinger <vapier@gentoo.org>2016-06-19 22:59:29 -0400
commit75ab6c592861c877e8b9b477170b46c4e8922b2a (patch)
tree72a45d84b00caecb84ac9d2cd2ce9745e061963d
parentpaxmacho: fix mem leak when reading macho files (diff)
downloadpax-utils-75ab6c592861c877e8b9b477170b46c4e8922b2a.tar.gz
pax-utils-75ab6c592861c877e8b9b477170b46c4e8922b2a.tar.bz2
pax-utils-75ab6c592861c877e8b9b477170b46c4e8922b2a.zip
pspax: fix file leakage when reading the command line
-rw-r--r--pspax.c2
1 files changed, 2 insertions, 0 deletions
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);
}