From 198a7788e759ee8bb8d07e6cd45aee5f2998bdf5 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Sat, 23 Mar 2024 14:40:36 +0100 Subject: [PATCH] lavc: avoid leaking AVCodecContext.chroma_intra_matrix --- libavcodec/options.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/options.c b/libavcodec/options.c index 5169f2e476..0c3b40a186 100644 --- a/libavcodec/options.c +++ b/libavcodec/options.c @@ -173,6 +173,7 @@ void avcodec_free_context(AVCodecContext **pavctx) av_freep(&avctx->extradata); av_freep(&avctx->subtitle_header); av_freep(&avctx->intra_matrix); + av_freep(&avctx->chroma_intra_matrix); av_freep(&avctx->inter_matrix); av_freep(&avctx->rc_override); av_channel_layout_uninit(&avctx->ch_layout);