mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-18 00:58:31 +00:00
ipc_ns: don't leak memory
CID 73377: Resource leak (RESOURCE_LEAK) 10. leaked_storage: Variable values 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:
parent
5663eafb5e
commit
1eb8b9b182
1 changed files with 1 additions and 0 deletions
1
ipc_ns.c
1
ipc_ns.c
|
|
@ -492,6 +492,7 @@ void ipc_sem_handler(struct cr_img *img, void *obj)
|
|||
return;
|
||||
}
|
||||
pr_msg_ipc_sem_array(e->nsems, values);
|
||||
xfree(values);
|
||||
}
|
||||
|
||||
static void ipc_msg_data_handler(struct cr_img *img, void *obj)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue