Mercurial > mplayer.hg
changeset 17777:13b2332c5154
missing url_free when using proxy and connect fails
author | reimar |
---|---|
date | Wed, 08 Mar 2006 15:07:48 +0000 |
parents | 83159e21a639 |
children | 37bfcf89c89c |
files | libmpdemux/network.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/network.c Wed Mar 08 13:26:36 2006 +0000 +++ b/libmpdemux/network.c Wed Mar 08 15:07:48 2006 +0000 @@ -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; }