aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2013-09-09 22:52:58 +1000
committerMike Frysinger <vapier@gentoo.org>2014-01-06 08:40:17 -0500
commitcbee0562887196f6c87dc538aaeeb494c79daa15 (patch)
tree75be780a1b5fcbef5d85289c88013cfbe8222106
parent45560694ca0b6d80ccbba23b51d1c4aa8cd228ab (diff)
downloadglibc-cbee0562887196f6c87dc538aaeeb494c79daa15.tar
glibc-cbee0562887196f6c87dc538aaeeb494c79daa15.tar.gz
glibc-cbee0562887196f6c87dc538aaeeb494c79daa15.tar.bz2
glibc-cbee0562887196f6c87dc538aaeeb494c79daa15.zip
Fix memory leak in stdlib/isomac.c
(cherry picked from commit 3f71830d35d7bf4ac11664f0c48c3c68d250618b)
-rw-r--r--stdlib/isomac.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/stdlib/isomac.c b/stdlib/isomac.c
index 2c9009b328..621b5154d2 100644
--- a/stdlib/isomac.c
+++ b/stdlib/isomac.c
@@ -263,6 +263,7 @@ get_null_defines (void)
if (system (command))
{
puts ("system() returned nonzero");
+ free (command);
return NULL;
}
free (command);