From dc9f52602f6493b33d1ac0d729ffb188e6a676fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Kov=C3=A1cs?= Date: Wed, 21 Sep 2005 08:14:17 +0000 Subject: [PATCH] =?UTF-8?q?Just=20noticed=20there=20is=20a=20memory=20leak?= =?UTF-8?q?=20in=20h264.c=20with=20the=20usage=20of=20rbsp=5Fbuffer.=20Her?= =?UTF-8?q?e=20is=20a=20patch=20which=20frees=20the=20rbsp=5Fbuffer=20in?= =?UTF-8?q?=20decode=5Fend().=20patch=20by=20(G=C3=A1bor=20Kov=C3=A1cs=20|?= =?UTF-8?q?=20picard=20/=20demoscene=20\=20hu)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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 925fb68089..14362d3122 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);