[FFmpeg-cvslog] ffserver: dont leak pb_buffer

Lukasz Marek git at videolan.org
Wed Nov 26 23:44:44 CET 2014


ffmpeg | branch: master | Lukasz Marek <lukasz.m.luki2 at gmail.com> | Thu Nov 20 18:59:58 2014 +0100| [3d0867917faa9b4cb8e9dd49e5773c60eb2b8fe6] | committer: Lukasz Marek

ffserver: dont leak pb_buffer

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3d0867917faa9b4cb8e9dd49e5773c60eb2b8fe6
---

 ffserver.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/ffserver.c b/ffserver.c
index 012056d..8ef51a1 100644
--- a/ffserver.c
+++ b/ffserver.c
@@ -2254,6 +2254,7 @@ static int http_prepare_data(HTTPContext *c)
                         c->state = HTTPSTATE_SEND_DATA_TRAILER;
                     }
 
+                    av_freep(&c->pb_buffer);
                     len = avio_close_dyn_buf(ctx->pb, &c->pb_buffer);
                     c->cur_frame_bytes = len;
                     c->buffer_ptr = c->pb_buffer;



More information about the ffmpeg-cvslog mailing list