[FFmpeg-devel] [PATCH] j2kdec: fix context tile memleak.

Michael Niedermayer michaelni at gmx.at
Fri Jan 13 06:02:37 CET 2012


On Fri, Jan 13, 2012 at 02:06:55AM +0100, Clément Bœsch wrote:
> ---
>  libavcodec/j2kdec.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/libavcodec/j2kdec.c b/libavcodec/j2kdec.c
> index 1f4cdeb..8d8d9e1 100644
> --- a/libavcodec/j2kdec.c
> +++ b/libavcodec/j2kdec.c
> @@ -1063,6 +1063,7 @@ static av_cold int decode_end(AVCodecContext *avctx)
>  
>      if (s->picture.data[0])
>          avctx->release_buffer(avctx, &s->picture);
> +    av_freep(&s->tile);

this should have been freed by cleanup(), apparently its not ...

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

There will always be a question for which you do not know the correct awnser.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120113/ea5227e3/attachment.asc>


More information about the ffmpeg-devel mailing list