2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-30 05:48:05 +00:00

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: Andrey Vagin <avagin@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Andrey Vagin 2013-04-05 01:44:31 +04:00 committed by Pavel Emelyanov
parent 50e94780f4
commit c9c1ec7b44

View File

@ -1304,6 +1304,8 @@ static int fill_zombies_pids(struct pstree_item *item)
BUG_ON(i == nr);
}
xfree(ch);
return 0;
}