From b47b78a8d2689f8f4a1e4b2c3b6d30ef44daad1f Mon Sep 17 00:00:00 2001 From: reimar Date: Sun, 8 Oct 2006 09:32:30 +0000 Subject: [PATCH] Forgotten http_free on send error. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20106 b3059339-0415-0410-9bf9-f77b7e298cf2 --- stream/asf_streaming.c | 1 + 1 file changed, 1 insertion(+) diff --git a/stream/asf_streaming.c b/stream/asf_streaming.c index bc9d082f38..491c44ba22 100644 --- a/stream/asf_streaming.c +++ b/stream/asf_streaming.c @@ -745,6 +745,7 @@ static int asf_http_streaming_start( stream_t *stream, int *demuxer_type ) { 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;