From f8b06be9709413c4cef14923a999eeb0acc22e87 Mon Sep 17 00:00:00 2001 From: Baptiste Coudurier Date: Sat, 21 Jun 2008 06:08:59 +0000 Subject: [PATCH] free c->pb_buffer before overwriting it, fix memleak Originally committed as revision 13853 to svn://svn.ffmpeg.org/ffmpeg/trunk --- ffserver.c | 1 + 1 file changed, 1 insertion(+) 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); } }