diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-06-21 06:08:59 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-06-21 06:08:59 +0000 |
commit | f8b06be9709413c4cef14923a999eeb0acc22e87 (patch) | |
tree | 9f182201486b6f11e96caa4d55090b5de255bfa0 /ffserver.c | |
parent | f7d321bc0346b8517d3ec8ec3676001c4828fe1e (diff) | |
download | ffmpeg-f8b06be9709413c4cef14923a999eeb0acc22e87.tar.gz |
free c->pb_buffer before overwriting it, fix memleak
Originally committed as revision 13853 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffserver.c')
-rw-r--r-- | ffserver.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ffserver.c b/ffserver.c index b53fb04619..27c998a1c2 100644 --- a/ffserver.c +++ b/ffserver.c @@ -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); } } |