mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-04-14 00:58:38 +02:00
Applied Roumen Petrov patch to fix crash/memory leak
Originally committed as revision 1758 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
37b787f124
commit
f0ef624057
@ -748,9 +748,6 @@ static void close_connection(HTTPContext *c)
|
|||||||
|
|
||||||
ctx = &c->fmt_ctx;
|
ctx = &c->fmt_ctx;
|
||||||
|
|
||||||
for(i=0; i<ctx->nb_streams; i++)
|
|
||||||
av_free(ctx->streams[i]) ;
|
|
||||||
|
|
||||||
if (!c->last_packet_sent) {
|
if (!c->last_packet_sent) {
|
||||||
if (ctx->oformat) {
|
if (ctx->oformat) {
|
||||||
/* prepare header */
|
/* prepare header */
|
||||||
@ -761,6 +758,9 @@ static void close_connection(HTTPContext *c)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for(i=0; i<ctx->nb_streams; i++)
|
||||||
|
av_free(ctx->streams[i]) ;
|
||||||
|
|
||||||
if (c->stream)
|
if (c->stream)
|
||||||
current_bandwidth -= c->stream->bandwidth;
|
current_bandwidth -= c->stream->bandwidth;
|
||||||
av_freep(&c->pb_buffer);
|
av_freep(&c->pb_buffer);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user