coverity: Resource leak (2nd round)

This commit is contained in:
Laxmikant Rashinkar
2014-07-27 15:29:12 -07:00
parent a9d7c13147
commit e4654b57ca
6 changed files with 12 additions and 4 deletions
+2
View File
@@ -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;
}