Commit c9c1ec7b authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

cr-dump: fix memory leak in fill_zombies_pids

CID 996204 (#1 of 1): Resource leak (RESOURCE_LEAK)
11. leaked_storage: Variable "ch" 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 50e94780
......@@ -1304,6 +1304,8 @@ static int fill_zombies_pids(struct pstree_item *item)
BUG_ON(i == nr);
}
xfree(ch);
return 0;
}
......
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