changeset 20100:1494f672c99d

Forgotten http_free on send error.
author reimar
date Sun, 08 Oct 2006 09:32:30 +0000
parents abf8f12ea6ed
children 4ccb2a53b859
files stream/asf_streaming.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/stream/asf_streaming.c	Sun Oct 08 09:28:49 2006 +0000
+++ b/stream/asf_streaming.c	Sun Oct 08 09:32:30 2006 +0000
@@ -745,6 +745,7 @@
 			int r = send( fd, http_hdr->buffer+i, http_hdr->buffer_size-i, 0 );
 			if(r <0) {
 				mp_msg(MSGT_NETWORK,MSGL_ERR,MSGTR_MPDEMUX_ASF_SocketWriteError,strerror(errno));
+				http_free( http_hdr );
 				return -1;
 			}
 			i += r;