From: Denis V. Lunev Date: Mon, 18 Sep 2023 18:00:40 +0000 (+0200) Subject: parallels: fix memory leak in parallels_open() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=c74cd7bd328001c85cd6f74f63b52ae1263b4c22;p=qemu.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 Reviewed-by: Alexander Ivanov --- 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.