Commit 06b3386c authored by bcoudurier's avatar bcoudurier

free c->pb_buffer before overwriting it, fix memleak

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@13853 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent ad7bd02a
...@@ -754,6 +754,7 @@ static void close_connection(HTTPContext *c) ...@@ -754,6 +754,7 @@ static void close_connection(HTTPContext *c)
/* prepare header */ /* prepare header */
if (url_open_dyn_buf(&ctx->pb) >= 0) { if (url_open_dyn_buf(&ctx->pb) >= 0) {
av_write_trailer(ctx); av_write_trailer(ctx);
av_freep(&c->pb_buffer);
url_close_dyn_buf(ctx->pb, &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