Commit 50e94780 authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

cr-dump: core_entry_free should free core

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: 's avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 30a7de35
...@@ -591,6 +591,7 @@ static void core_entry_free(CoreEntry *core) ...@@ -591,6 +591,7 @@ static void core_entry_free(CoreEntry *core)
xfree(core->thread_core); xfree(core->thread_core);
xfree(core->tc); xfree(core->tc);
xfree(core->ids); xfree(core->ids);
xfree(core);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment