提交 5d95ac5b 编写于 作者: G Glauber Costa 提交者: Aurelien Jarno

fix use after free

We are using the vs structure when it was just freed. Classic use after free,
fix it.
Signed-off-by: NGlauber Costa <glommer@redhat.com>
Signed-off-by: NAurelien Jarno <aurelien@aurel32.net>
上级 22f84e73
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册