Skip to content

Commit

Permalink
cr-dump: core_entry_free should free core
Browse files Browse the repository at this point in the history
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@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
  • Loading branch information
avagin authored and xemul committed Apr 5, 2013
1 parent 30a7de3 commit 50e9478
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cr-dump.c
Original file line number Diff line number Diff line change
Expand Up @@ -591,6 +591,7 @@ static void core_entry_free(CoreEntry *core)
xfree(core->thread_core);
xfree(core->tc);
xfree(core->ids);
xfree(core);
}
}

Expand Down

0 comments on commit 50e9478

Please sign in to comment.