parallels: fix memory leak in parallels_open()
We should free opts allocated through qemu_opts_create() at the end. Signed-off-by: Denis V. Lunev <den@openvz.org> Reviewed-by: Alexander Ivanov <alexander.ivanov@virtuozzo.com>
This commit is contained in:
parent
73f3e13692
commit
c74cd7bd32
@ -1217,6 +1217,7 @@ fail_format:
|
|||||||
fail_options:
|
fail_options:
|
||||||
ret = -EINVAL;
|
ret = -EINVAL;
|
||||||
fail:
|
fail:
|
||||||
|
qemu_opts_del(opts);
|
||||||
/*
|
/*
|
||||||
* "s" object was allocated by g_malloc0 so we can safely
|
* "s" object was allocated by g_malloc0 so we can safely
|
||||||
* try to free its fields even they were not allocated.
|
* try to free its fields even they were not allocated.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user