This will result in a double free on close, because it's freed in qemu_chr_delete() right after calling the close function.
Signed-off-by: Corey Minyard <cminy...@mvista.com> --- qemu-char.c | 1 - 1 file changed, 1 deletion(-) diff --git a/qemu-char.c b/qemu-char.c index 23d7647..935066d 100644 --- a/qemu-char.c +++ b/qemu-char.c @@ -2075,7 +2075,6 @@ static void win_stdio_close(CharDriverState *chr) } g_free(chr->opaque); - g_free(chr); } static CharDriverState *qemu_chr_open_stdio(CharDriverState *chr, -- 1.8.3.1