mirror of
https://github.com/mii443/qemu.git
synced 2025-12-16 17:18:49 +00:00
char: remove use-after-free on win-stdio
Found by reviewing the code, win_stdio_close() is called by qemu_chr_free() which then call qemu_chr_free_common() taking care of freeing CharDriverState*. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20161022095318.17775-3-marcandre.lureau@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
committed by
Paolo Bonzini
parent
2c9bf30bdf
commit
ba60e727b0
@@ -2435,7 +2435,6 @@ static void win_stdio_close(CharDriverState *chr)
|
||||
}
|
||||
|
||||
g_free(chr->opaque);
|
||||
g_free(chr);
|
||||
}
|
||||
|
||||
static CharDriverState *qemu_chr_open_stdio(const char *id,
|
||||
|
||||
Reference in New Issue
Block a user