projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
44b37b9
)
fix QemuOpts leak
author
Paolo Bonzini
<pbonzini@redhat.com>
Thu, 23 Dec 2010 12:42:54 +0000
(13:42 +0100)
committer
Anthony Liguori
<aliguori@us.ibm.com>
Tue, 1 Feb 2011 22:50:44 +0000
(16:50 -0600)
Now that no backend's open function saves the passed QemuOpts, fix a leak
in the qemu_chr_open backwards-compatible parser.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
qemu-char.c
patch
|
blob
|
history
diff --git
a/qemu-char.c
b/qemu-char.c
index bb0c32d874a29a0e6c18524e8cbc785b9dcddf07..ee4f4cab2def457357e5ede4801f2ae61dc85a7d 100644
(file)
--- a/
qemu-char.c
+++ b/
qemu-char.c
@@
-2559,6
+2559,7
@@
CharDriverState *qemu_chr_open(const char *label, const char *filename, void (*i
if (chr && qemu_opt_get_bool(opts, "mux", 0)) {
monitor_init(chr, MONITOR_USE_READLINE);
}
+ qemu_opts_del(opts);
return chr;
}