[MPlayer-cvslog] CVS: main/libmpdemux network.c,1.123,1.124
Reimar Döffinger CVS
syncmail at mplayerhq.hu
Wed Mar 8 16:07:51 CET 2006
CVS change done by Reimar Döffinger CVS
Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var2/tmp/cvs-serv14391
Modified Files:
network.c
Log Message:
missing url_free when using proxy and connect fails
Index: network.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/network.c,v
retrieving revision 1.123
retrieving revision 1.124
diff -u -r1.123 -r1.124
--- network.c 20 Feb 2006 21:59:28 -0000 1.123
+++ network.c 8 Mar 2006 15:07:48 -0000 1.124
@@ -431,6 +431,7 @@
if( url->port==0 ) url->port = 8080; // Default port for the proxy server
fd = connect2Server( url->hostname, url->port,1 );
url_free( server_url );
+ server_url = NULL;
} else {
if( server_url->port==0 ) server_url->port = 80; // Default port for the web server
fd = connect2Server( server_url->hostname, server_url->port,1 );
@@ -451,6 +452,8 @@
return fd;
err_out:
http_free(http_hdr);
+ if (proxy && server_url)
+ url_free(server_url);
return -1;
}
More information about the MPlayer-cvslog
mailing list