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=3f71830d35d7bf4ac11664f0c48c3c68d250618b;p=thirdparty%2Fglibc.git Fix memory leak in stdlib/isomac.c --- diff --git a/ChangeLog b/ChangeLog index 68909c8ec96..b9239a5a23a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2013-09-09 Allan McRae + [BZ #15893] + * stdlib/isomac.c (get_null_defines): Fix memory leak. + [BZ #15892] * libio/memstream.c (open_memstream): Fix memory leak. * libio/wmemstream.c (open_wmemstream): Likewise. diff --git a/NEWS b/NEWS index 90ff9932e56..9d7ca623c9f 100644 --- a/NEWS +++ b/NEWS @@ -22,7 +22,8 @@ Version 2.18 15423, 15424, 15426, 15427, 15429, 15431, 15432, 15441, 15442, 15448, 15465, 15480, 15485, 15488, 15490, 15492, 15493, 15497, 15506, 15522, 15529, 15532, 15536, 15553, 15577, 15583, 15618, 15627, 15631, 15654, - 15655, 15666, 15667, 15674, 15711, 15755, 15759, 15797, 15892, 15895. + 15655, 15666, 15667, 15674, 15711, 15755, 15759, 15797, 15892, 15893, + 15895. * CVE-2013-2207 Incorrectly granting access to another user's pseudo-terminal has been fixed by disabling the use of pt_chown (Bugzilla #15755). 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);