summaryrefslogtreecommitdiffstats
path: root/vnc
diff options
context:
space:
mode:
Diffstat (limited to 'vnc')
-rw-r--r--vnc/vnc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/vnc/vnc.c b/vnc/vnc.c
index 780c3629..e50dd70f 100644
--- a/vnc/vnc.c
+++ b/vnc/vnc.c
@@ -972,6 +972,8 @@ lib_mod_connect(struct vnc *v)
if (v->sck < 0)
{
v->server_msg(v, "VNC error: socket create error, g_tcp_socket() failed", 0);
+ free_stream(s);
+ free_stream(pixel_format);
return 1;
}