projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
73f3e13
)
parallels: fix memory leak in parallels_open()
author
Denis V. Lunev
<den@openvz.org>
Mon, 18 Sep 2023 18:00:40 +0000
(20:00 +0200)
committer
Denis V. Lunev
<den@openvz.org>
Thu, 21 Sep 2023 06:45:32 +0000
(08:45 +0200)
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>
block/parallels.c
patch
|
blob
|
history
diff --git
a/block/parallels.c
b/block/parallels.c
index 428f72de1c4387140d3253d3e85cf3e971687578..af7be427c998a8b30280862d3a596f739511f803 100644
(file)
--- 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.