[CRIU] [PATCH 4/9] cr-dump: core_entry_free should free core

Andrey Vagin avagin at openvz.org
Thu Apr 4 17:44:30 EDT 2013


CID 996205 (#1-2 of 2): Resource leak (RESOURCE_LEAK)
14. leaked_storage: Variable "core" going out of scope leaks the storage it points to.

Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
 cr-dump.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/cr-dump.c b/cr-dump.c
index fc2bfdb..ad06d4f 100644
--- a/cr-dump.c
+++ b/cr-dump.c
@@ -591,6 +591,7 @@ static void core_entry_free(CoreEntry *core)
 		xfree(core->thread_core);
 		xfree(core->tc);
 		xfree(core->ids);
+		xfree(core);
 	}
 }
 
-- 
1.7.11.7



More information about the CRIU mailing list