From: Allan McRae Date: Mon, 9 Sep 2013 12:52:58 +0000 (+1000) Subject: Fix memory leak in stdlib/isomac.c X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cbee0562887196f6c87dc538aaeeb494c79daa15;p=thirdparty%2Fglibc.git Fix memory leak in stdlib/isomac.c (cherry picked from commit 3f71830d35d7bf4ac11664f0c48c3c68d250618b) --- diff --git a/stdlib/isomac.c b/stdlib/isomac.c index 2c9009b328c..621b5154d2b 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);