Commit f8b06be9 authored by Baptiste Coudurier's avatar Baptiste Coudurier

free c->pb_buffer before overwriting it, fix memleak

Originally committed as revision 13853 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent f7d321bc
......@@ -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);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment