aboutsummaryrefslogtreecommitdiff
path: root/qemu-char.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2010-12-23 13:42:54 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2011-02-01 16:50:44 -0600
commit363f8cb9bcd308bd03d28e04ea5f5557dea5d5e8 (patch)
tree88bc306c7184ba60edd66ce3b62e99ec95ea528a /qemu-char.c
parent44b37b933745a9005504427dec06f4066af9762e (diff)
downloadqemu-363f8cb9bcd308bd03d28e04ea5f5557dea5d5e8.zip
qemu-363f8cb9bcd308bd03d28e04ea5f5557dea5d5e8.tar.gz
qemu-363f8cb9bcd308bd03d28e04ea5f5557dea5d5e8.tar.bz2
fix QemuOpts leak
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>
Diffstat (limited to 'qemu-char.c')
-rw-r--r--qemu-char.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/qemu-char.c b/qemu-char.c
index bb0c32d..ee4f4ca 100644
--- 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;
}