aboutsummaryrefslogtreecommitdiff
path: root/stdlib/isomac.c
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2013-09-09 22:52:58 +1000
committerAllan McRae <allan@archlinux.org>2013-09-09 22:53:46 +1000
commit34829bc28f727ad9db6a180191c62d33f67b7915 (patch)
treeb5b8c9f3591f3b19a1ea1c35deb45291de583a9c /stdlib/isomac.c
parent3932737df1a022f8f207db9874194600296ed437 (diff)
downloadglibc-34829bc28f727ad9db6a180191c62d33f67b7915.zip
glibc-34829bc28f727ad9db6a180191c62d33f67b7915.tar.gz
glibc-34829bc28f727ad9db6a180191c62d33f67b7915.tar.bz2
Fix memory leak in stdlib/isomac.c
Diffstat (limited to 'stdlib/isomac.c')
-rw-r--r--stdlib/isomac.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/stdlib/isomac.c b/stdlib/isomac.c
index 2c9009b..621b515 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);