From 7f58eb3c2b552f232905731b5944307e72c590a0 Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Tue, 17 May 2011 13:01:21 +0200 Subject: [PATCH] indeo3: release buffer in indeo3_decode_end() Fix leak. --- libavcodec/indeo3.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavcodec/indeo3.c b/libavcodec/indeo3.c index 7a648cd3f3..b74fcf7c22 100644 --- a/libavcodec/indeo3.c +++ b/libavcodec/indeo3.c @@ -1137,6 +1137,9 @@ static av_cold int indeo3_decode_end(AVCodecContext *avctx) iv_free_func(s); + if (s->frame.data[0]) + avctx->release_buffer(avctx, &s->frame); + return 0; }