From 910e9fa7f95f65aba6adbaaa9a1720820cab60b5 Mon Sep 17 00:00:00 2001 From: Adam Kwolek Date: Wed, 21 Sep 2011 11:55:15 +1000 Subject: FIX: Memory leak during Assembly For fdlist pointer allocated in assemble_container_content() function, free() is never called. This patch fixes this memory leak. Signed-off-by: Adam Kwolek Signed-off-by: NeilBrown --- Assemble.c | 1 + 1 file changed, 1 insertion(+) (limited to 'Assemble.c') diff --git a/Assemble.c b/Assemble.c index 25cfec1d..66d2ee42 100644 --- a/Assemble.c +++ b/Assemble.c @@ -1584,6 +1584,7 @@ int assemble_container_content(struct supertype *st, int mdfd, if (fdlist[spare] >= 0) close(fdlist[spare]); } + free(fdlist); if (err) { fprintf(stderr, Name ": Failed to restore critical" " section for reshape - sorry.\n"); -- cgit v1.2.3