diff mbox series

[FFmpeg-devel] avcodec/rawdec: Free bitstream_buf

Message ID HE1PR0301MB2154832D45A7BFF69752CB8D8F799@HE1PR0301MB2154.eurprd03.prod.outlook.com
State Accepted
Commit 5c0f6d53da154ef51933eb5820424612aedda50d
Headers show
Series [FFmpeg-devel] avcodec/rawdec: Free bitstream_buf | expand

Checks

Context Check Description
andriy/x86_make success Make finished
andriy/x86_make_fate success Make fate finished
andriy/PPC64_make success Make finished
andriy/PPC64_make_fate success Make fate finished

Commit Message

Andreas Rheinhardt April 3, 2021, 9:59 a.m. UTC
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@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 mbox series

Patch

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;
 }