Thread (2 messages) 2 messages, 2 authors, 2011-09-07

[mdadm PATCH] Fix small memory leak

flat view
STALE5517d

From: Thomas Jarosch <hidden>
Date: 2011-08-26 05:33:37
Subsystem: the rest · Maintainer: Linus Torvalds

Found by cppcheck

Signed-off-by: Thomas Jarosch <redacted>
---
 config.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/config.c b/config.c
index ad75411..c0a6baa 100644
--- a/config.c
+++ b/config.c
@@ -707,6 +707,8 @@ void autoline(char *line)
 	for (i = 0; i < super_cnt; i++)
 		if (!seen[i])
 			policy_add(rule_policy, pol_auto, dflt, pol_metadata, superlist[i]->name, NULL);
+
+	free(seen);
 }
 
 int loaded = 0;
-- 
1.7.4.4
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help