diff options
author | Denis V. Lunev <den@openvz.org> | 2023-09-18 20:00:40 +0200 |
---|---|---|
committer | Denis V. Lunev <den@openvz.org> | 2023-09-21 08:45:32 +0200 |
commit | c74cd7bd328001c85cd6f74f63b52ae1263b4c22 (patch) | |
tree | b936c80267dfe3576d1f6ac665bd931131963c27 /block/parallels.c | |
parent | 73f3e136922be5864dace55e744d23914f21e358 (diff) |
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>
Diffstat (limited to 'block/parallels.c')
-rw-r--r-- | block/parallels.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/block/parallels.c b/block/parallels.c index 428f72de1c..af7be427c9 100644 --- a/block/parallels.c +++ b/block/parallels.c @@ -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. |