diff options
author | Adam Kwolek <adam.kwolek@intel.com> | 2011-09-21 11:55:15 +1000 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2011-09-21 11:55:15 +1000 |
commit | 910e9fa7f95f65aba6adbaaa9a1720820cab60b5 (patch) | |
tree | b052e26fc2bf2856de50ab9ad0aad759381e1f51 /Assemble.c | |
parent | ddb12f6ca6c1b04fcc79f114f5d47d6c268ed37a (diff) |
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 <adam.kwolek@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'Assemble.c')
-rw-r--r-- | Assemble.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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"); |