]> git.sesse.net Git - ffmpeg/commitdiff
Just noticed there is a memory leak in h264.c with the usage of rbsp_buffer.
authorGábor Kovács <picard@demoscene.hu>
Wed, 21 Sep 2005 08:14:17 +0000 (08:14 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 21 Sep 2005 08:14:17 +0000 (08:14 +0000)
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

libavcodec/h264.c

index 925fb68089ed44e41fc34392b2de70bc0acb02a7..14362d3122b87ca5acfd3dbb9ade2f54f336a67f 100644 (file)
@@ -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);