summaryrefslogtreecommitdiffstats
path: root/libhb/ports.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2012-05-01 11:23:36 +0000
committerjstebbins <[email protected]>2012-05-01 11:23:36 +0000
commitdf3daf7cdd85794ef3d7f0eff181eb3b323a489f (patch)
treebb7e5295a613949f3b556d7baf5a43b387b551f6 /libhb/ports.c
parent2e8be70b9910c62d8d8cb693f8c58485efbf4e97 (diff)
merge assorted fixes provided by Rogerio Brito
Pretty much all resource cleanup issues on error condition handling. Thanks Rogerio! git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4620 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/ports.c')
-rw-r--r--libhb/ports.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libhb/ports.c b/libhb/ports.c
index 6ccbaede3..cec4efd96 100644
--- a/libhb/ports.c
+++ b/libhb/ports.c
@@ -693,6 +693,7 @@ hb_net_t * hb_net_open( char * address, int port )
if (iResult != 0)
{
hb_log("WSAStartup failed: %d", iResult);
+ free(n);
return NULL;
}
winsock_init = 1;