From dc9f52602f6493b33d1ac0d729ffb188e6a676fa Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=A1bor=20Kov=C3=A1cs?= Date: Wed, 21 Sep 2005 08:14:17 +0000 Subject: [PATCH] =?utf8?q?Just=20noticed=20there=20is=20a=20memory=20leak?= =?utf8?q?=20in=20h264.c=20with=20the=20usage=20of=20rbsp=5Fbuffer.=20Here?= =?utf8?q?=20is=20a=20patch=20which=20frees=20the=20rbsp=5Fbuffer=20in=20d?= =?utf8?q?ecode=5Fend().=20patch=20by=20(G=C3=A1bor=20Kov=C3=A1cs=20|=20pi?= =?utf8?q?card=20/=20demoscene=20\=20hu)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Originally committed as revision 4607 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/h264.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/h264.c b/libavcodec/h264.c index 925fb68089e..14362d3122b 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -7807,6 +7807,7 @@ static int decode_end(AVCodecContext *avctx) H264Context *h = avctx->priv_data; MpegEncContext *s = &h->s; + av_freep(&h->rbsp_buffer); free_tables(h); //FIXME cleanup init stuff perhaps MPV_common_end(s); -- 2.39.5