[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 04/20] qemu-char: remove free of chr from win_stdio_

From: minyard
Subject: [Qemu-devel] [PATCH 04/20] qemu-char: remove free of chr from win_stdio_close
Date: Wed, 29 May 2013 17:08:00 -0500

From: Corey Minyard <address@hidden>

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 <address@hidden>
 qemu-char.c |    1 -
 1 file changed, 1 deletion(-)

diff --git a/qemu-char.c b/qemu-char.c
index 76cddd9..1270a65 100644
--- a/qemu-char.c
+++ b/qemu-char.c
@@ -2145,7 +2145,6 @@ static void win_stdio_close(CharDriverState *chr)
-    g_free(chr);
 static CharDriverState *qemu_chr_open_stdio(CharDriverState *chr,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]