[FFmpeg-devel] [PATCH] Fix memory leak in ALS decoder in big endian systems

Måns Rullgård mans
Sat Jan 29 19:10:10 CET 2011


Vitor Sessak <vitor1001 at gmail.com> writes:

> Caught by Michael Kostylev's PPC+valgrind FATE box.
>
> -Vitor
>
> From c5458816435dbfd055953606d33f47d047721b4d Mon Sep 17 00:00:00 2001
> From: Vitor Sessak <vitor1001 at gmail.com>
> Date: Sat, 29 Jan 2011 15:39:09 +0100
> Subject: [PATCH] Fix memory leak in ALS decoder in big endian systems
>
> ---
>  libavcodec/alsdec.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/libavcodec/alsdec.c b/libavcodec/alsdec.c
> index 116e5e2..c8b45b8 100644
> --- a/libavcodec/alsdec.c
> +++ b/libavcodec/alsdec.c
> @@ -1564,6 +1564,7 @@ static av_cold int decode_end(AVCodecContext *avctx)
>      av_freep(&ctx->chan_data);
>      av_freep(&ctx->chan_data_buffer);
>      av_freep(&ctx->reverted_channels);
> +    av_freep(&ctx->crc_buffer);
>  
>      return 0;
>  }
> -- 
> 1.7.1

OK

-- 
M?ns Rullg?rd
mans at mansr.com



More information about the ffmpeg-devel mailing list