summary refs log tree commit diff
path: root/stdlib
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
parent3932737df1a022f8f207db9874194600296ed437 (diff)
downloadglibc-34829bc28f727ad9db6a180191c62d33f67b7915.tar.gz
glibc-34829bc28f727ad9db6a180191c62d33f67b7915.tar.xz
glibc-34829bc28f727ad9db6a180191c62d33f67b7915.zip
Fix memory leak in stdlib/isomac.c
Diffstat (limited to 'stdlib')
-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);