From 363f8cb9bcd308bd03d28e04ea5f5557dea5d5e8 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Thu, 23 Dec 2010 13:42:54 +0100 Subject: 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 Signed-off-by: Anthony Liguori --- qemu-char.c | 1 + 1 file changed, 1 insertion(+) 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; } -- cgit v1.1