]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix memory leak in stdlib/isomac.c
authorAllan McRae <allan@archlinux.org>
Mon, 9 Sep 2013 12:52:58 +0000 (22:52 +1000)
committerMike Frysinger <vapier@gentoo.org>
Mon, 6 Jan 2014 13:40:17 +0000 (08:40 -0500)
(cherry picked from commit 3f71830d35d7bf4ac11664f0c48c3c68d250618b)

stdlib/isomac.c

index 2c9009b328c43feb209e446fa19952b78883a0cb..621b5154d2b7be59092aac1909b0242aa056a2e9 100644 (file)
@@ -263,6 +263,7 @@ get_null_defines (void)
   if (system (command))
     {
       puts ("system() returned nonzero");
+      free (command);
       return NULL;
     }
   free (command);