From fc0325dbe13bb3d7a2fb0438beeb658897e01044 Mon Sep 17 00:00:00 2001 From: Alexandre Janniaux Date: Thu, 30 Jan 2025 15:36:31 +0100 Subject: [PATCH] packetizer: av1: fix double free If the p_extra is freed in the previous branch, it is also freed in this branch without being reset to NULL before. Regression from a95213e20de69d584324f6d0c9f37c7a7cdfe3e3. --- modules/packetizer/av1.c | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/packetizer/av1.c b/modules/packetizer/av1.c index 713748b3e9..96262d8843 100644 --- a/modules/packetizer/av1.c +++ b/modules/packetizer/av1.c @@ -159,6 +159,7 @@ static void UpdateDecoderFormat(decoder_t *p_dec) { free(p_dec->fmt_out.p_extra); p_dec->fmt_out.i_extra = 0; + p_dec->fmt_out.p_extra = NULL; } if(p_dec->fmt_out.i_extra <= 4)