OSDN Git Service

Fix memory leak in ALS decoder in big endian systems
authorVitor Sessak <vitor1001@gmail.com>
Sat, 29 Jan 2011 14:39:09 +0000 (15:39 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 30 Jan 2011 02:41:47 +0000 (03:41 +0100)
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit e0eb963aaa55ddcc54bf80f3261f6a436edca4a3)

libavcodec/alsdec.c

index 3e415c0..e5b734c 100644 (file)
@@ -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;
 }