fix use after free
PATCH 1/1 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 <[email protected]>
--- vnc.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
vnc.c +1 -1
@@ -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)
Signature · 1 line
1.6.2.2