summaryrefslogtreecommitdiff
path: root/vnc.c
diff options
context:
space:
mode:
authorCorentin Chary <corentincj@iksaif.net>2010-05-19 09:24:08 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2010-06-01 12:53:09 -0500
commit161c4f20bfbd54f0b77426adccb68ee831678af0 (patch)
treeb61ba391c826cee4811ddba94b415513dab9f1ec /vnc.c
parent5d418e3ba96cfa810e00885a52b55f19cac8f9a6 (diff)
downloadqemu-161c4f20bfbd54f0b77426adccb68ee831678af0.zip
vnc: remove a memory leak in zlib
Makes sure we free all ressources used in zlib encoding (zlib stream and buffer). Signed-off-by: Corentin Chary <corentincj@iksaif.net> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'vnc.c')
-rw-r--r--vnc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/vnc.c b/vnc.c
index 6b2f7241a8..f48f253675 100644
--- a/vnc.c
+++ b/vnc.c
@@ -974,6 +974,8 @@ static void vnc_disconnect_finish(VncState *vs)
qobject_decref(vs->info);
+ vnc_zlib_clear(vs);
+
#ifdef CONFIG_VNC_TLS
vnc_tls_client_cleanup(vs);
#endif /* CONFIG_VNC_TLS */