summaryrefslogtreecommitdiff
path: root/libavcodec/h264.c
diff options
context:
space:
mode:
authorGábor Kovács <picard@demoscene.hu>2005-09-21 08:14:17 +0000
committerMichael Niedermayer <michaelni@gmx.at>2005-09-21 08:14:17 +0000
commitdc9f52602f6493b33d1ac0d729ffb188e6a676fa (patch)
treee1978edeee3661937aae766831514022a0ea436e /libavcodec/h264.c
parent528bbdde7f1cb7512cdab7b0fb78dc5da37cef0c (diff)
Just noticed there is a memory leak in h264.c with the usage of rbsp_buffer.
Here is a patch which frees the rbsp_buffer in decode_end(). patch by (Gábor Kovács | picard / demoscene \ hu) Originally committed as revision 4607 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h264.c')
-rw-r--r--libavcodec/h264.c1
1 files changed, 1 insertions, 0 deletions
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);