mirror of https://github.com/xemu-project/xemu.git
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:
|
||||
ret = -EINVAL;
|
||||
fail:
|
||||
qemu_opts_del(opts);
|
||||
/*
|
||||
* "s" object was allocated by g_malloc0 so we can safely
|
||||
* try to free its fields even they were not allocated.
|
||||
|
|
Loading…
Reference in New Issue