mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
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
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue