Commit 1eb8b9b1 authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

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: 's avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 5663eafb
......@@ -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)
......
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