diff options
author | Glauber Costa <glommer@redhat.com> | 2009-09-25 08:30:57 -0400 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2009-09-25 18:26:59 +0200 |
commit | 5d95ac5b6475c3b6b0e36b5f04de49bba88b3e59 (patch) | |
tree | 5a397b7283afc54e4ab019ebb67a0b2476863c9f /vnc.c | |
parent | 22f84e73d81a1b99a48b9bc4e3663fdfadfa7da1 (diff) |
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) |