Signed-off-by: Andreas Rheinhardt <andreas.rheinha...@outlook.com>
---
This leak can be reproduced with mlv/M19-0333-cut.MLV from the
FATE-suite; but it is currently only used for a demux test.
Will apply soon.

 libavcodec/rawdec.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/rawdec.c b/libavcodec/rawdec.c
index 1badb69180..d3756328ba 100644
--- a/libavcodec/rawdec.c
+++ b/libavcodec/rawdec.c
@@ -484,6 +484,7 @@ static av_cold int raw_close_decoder(AVCodecContext *avctx)
     RawVideoContext *context = avctx->priv_data;
 
     av_buffer_unref(&context->palette);
+    av_freep(&context->bitstream_buf);
     return 0;
 }
 
-- 
2.27.0

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to