summaryrefslogtreecommitdiffstats
path: root/vnc
diff options
context:
space:
mode:
authorLaxmikant Rashinkar <LK.Rashinkar@gmail.com>2014-07-27 15:29:12 -0700
committerLaxmikant Rashinkar <LK.Rashinkar@gmail.com>2014-07-27 15:29:12 -0700
commite4654b57ca19118277219b6b430c6e0dc7b7984f (patch)
tree2fd0e16d43096619faf208105f91ab33a1c1acf5 /vnc
parenta9d7c13147419532cc668e797d949413de895be5 (diff)
downloadxrdp-proprietary-e4654b57ca19118277219b6b430c6e0dc7b7984f.tar.gz
xrdp-proprietary-e4654b57ca19118277219b6b430c6e0dc7b7984f.zip
coverity: Resource leak (2nd round)
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;
}