This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] Fix memory leak in stdlib/isomac.c
- From: Allan McRae <allan at archlinux dot org>
- To: libc-alpha at sourceware dot org
- Date: Mon, 9 Sep 2013 22:11:08 +1000
- Subject: [PATCH] Fix memory leak in stdlib/isomac.c
- Authentication-results: sourceware.org; auth=none
---
2013-09-09 Allan McRae <allan@archlinux.org>
[BZ #15893]
* stdlib/isomac.c (get_null_defines): Fix memory leak.
stdlib/isomac.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/stdlib/isomac.c b/stdlib/isomac.c
index 2c9009b..621b515 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);
--
1.8.4