mirror of https://git.ffmpeg.org/ffmpeg.git
free c->pb_buffer before overwriting it, fix memleak
Originally committed as revision 13853 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
f7d321bc03
commit
f8b06be970
|
@ -754,6 +754,7 @@ static void close_connection(HTTPContext *c)
|
|||
/* prepare header */
|
||||
if (url_open_dyn_buf(&ctx->pb) >= 0) {
|
||||
av_write_trailer(ctx);
|
||||
av_freep(&c->pb_buffer);
|
||||
url_close_dyn_buf(ctx->pb, &c->pb_buffer);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue