[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 8/8] fix QemuOpts leak
From: |
Paolo Bonzini |
Subject: |
[Qemu-devel] [PATCH 8/8] fix QemuOpts leak |
Date: |
Thu, 23 Dec 2010 13:42:54 +0100 |
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 <address@hidden>
---
qemu-char.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/qemu-char.c b/qemu-char.c
index 7b61a62..b99b77b 100644
--- a/qemu-char.c
+++ b/qemu-char.c
@@ -2555,6 +2555,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;
}
--
1.7.3.2
- [Qemu-devel] [PATCH 0/8] make -qmp stdio usable, Paolo Bonzini, 2010/12/23
- [Qemu-devel] [PATCH 1/8] remove broken code for tty, Paolo Bonzini, 2010/12/23
- [Qemu-devel] [PATCH 2/8] add qemu_chr_set_echo, Paolo Bonzini, 2010/12/23
- [Qemu-devel] [PATCH 3/8] move atexit(term_exit) and O_NONBLOCK to qemu_chr_open_stdio, Paolo Bonzini, 2010/12/23
- [Qemu-devel] [PATCH 4/8] add set_echo implementation for qemu_chr_stdio, Paolo Bonzini, 2010/12/23
- [Qemu-devel] [PATCH 5/8] create TextConsole together with the CharDeviceState, Paolo Bonzini, 2010/12/23
- [Qemu-devel] [PATCH 6/8] add set_echo implementation for text consoles, Paolo Bonzini, 2010/12/23
- [Qemu-devel] [PATCH 8/8] fix QemuOpts leak,
Paolo Bonzini <=
- [Qemu-devel] [PATCH 7/8] remove text_console_opts, Paolo Bonzini, 2010/12/23