diff options
author | 2009-09-25 08:30:57 -0400 | |
---|---|---|
committer | 2009-09-25 18:26:59 +0200 | |
commit | 5d95ac5b6475c3b6b0e36b5f04de49bba88b3e59 (patch) | |
tree | 5a397b7283afc54e4ab019ebb67a0b2476863c9f /vnc.c | |
parent | unbreak usb pass-through on linux. (diff) | |
download | qemu-kvm-5d95ac5b6475c3b6b0e36b5f04de49bba88b3e59.tar.gz qemu-kvm-5d95ac5b6475c3b6b0e36b5f04de49bba88b3e59.tar.bz2 qemu-kvm-5d95ac5b6475c3b6b0e36b5f04de49bba88b3e59.zip |
fix use after free
We are using the vs structure when it was just freed. Classic use after free,
fix it.
Signed-off-by: Glauber Costa <glommer@redhat.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'vnc.c')
-rw-r--r-- | vnc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -918,8 +918,8 @@ static void vnc_disconnect_finish(VncState *vs) if (!vs->vd->clients) dcl->idle = 1; - qemu_free(vs); vnc_remove_timer(vs->vd); + qemu_free(vs); } int vnc_client_io_error(VncState *vs, int ret, int last_errno) |