diff options
author | Allan McRae <allan@archlinux.org> | 2013-09-09 22:52:58 +1000 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2013-09-09 22:53:46 +1000 |
commit | 34829bc28f727ad9db6a180191c62d33f67b7915 (patch) | |
tree | b5b8c9f3591f3b19a1ea1c35deb45291de583a9c | |
parent | 3932737df1a022f8f207db9874194600296ed437 (diff) | |
download | glibc-34829bc28f727ad9db6a180191c62d33f67b7915.tar.gz glibc-34829bc28f727ad9db6a180191c62d33f67b7915.tar.xz glibc-34829bc28f727ad9db6a180191c62d33f67b7915.zip |
Fix memory leak in stdlib/isomac.c
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | NEWS | 3 | ||||
-rw-r--r-- | stdlib/isomac.c | 1 |
3 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index 30c6a39961..496a236f09 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2013-09-09 Allan McRae <allan@archlinux.org> + [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 72c10e646b..9d128ae565 100644 --- a/NEWS +++ b/NEWS @@ -10,7 +10,8 @@ Version 2.19 * The following bugs are resolved with this release: 14155, 14699, 15427, 15522, 15531, 15532, 15736, 15749, 15797, 15844, - 15867, 15886, 15887, 15890, 15892, 15895, 15897, 15905, 15909, 15921. + 15867, 15886, 15887, 15890, 15892, 15893, 15895, 15897, 15905, 15909, + 15921. * CVE-2013-4237 The readdir_r function could write more than NAME_MAX bytes to the d_name member of struct dirent, or omit the terminating NUL 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); |