diff --git a/libavcodec/rawdec.c b/libavcodec/rawdec.c index c18c3dd3e1..aaafbd46eb 100644 --- a/libavcodec/rawdec.c +++ b/libavcodec/rawdec.c @@ -493,6 +493,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; }