diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2016-10-22 12:52:42 +0300 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2016-10-24 15:27:19 +0200 |
commit | ba60e727b0a824baa1762264be5ef67dc30a6bac (patch) | |
tree | 7a970da823adaa8cd57072c6ea1f4dca495c8f4b /qemu-char.c | |
parent | 2c9bf30bdf1e17b340c9e5e70923cf76c9e66d9e (diff) |
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>
Diffstat (limited to 'qemu-char.c')
-rw-r--r-- | qemu-char.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/qemu-char.c b/qemu-char.c index d83a89618e..9165051f2a 100644 --- a/qemu-char.c +++ b/qemu-char.c @@ -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, |