mirror of https://github.com/mpv-player/mpv
Forgotten http_free on send error.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20106 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
48ff1ab95e
commit
b47b78a8d2
|
@ -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 );
|
int r = send( fd, http_hdr->buffer+i, http_hdr->buffer_size-i, 0 );
|
||||||
if(r <0) {
|
if(r <0) {
|
||||||
mp_msg(MSGT_NETWORK,MSGL_ERR,MSGTR_MPDEMUX_ASF_SocketWriteError,strerror(errno));
|
mp_msg(MSGT_NETWORK,MSGL_ERR,MSGTR_MPDEMUX_ASF_SocketWriteError,strerror(errno));
|
||||||
|
http_free( http_hdr );
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
i += r;
|
i += r;
|
||||||
|
|
Loading…
Reference in New Issue