From 808c27b4cc8645e137120ccda024b46ed75a4868 Mon Sep 17 00:00:00 2001 From: Johan Adam Nilsson Date: Mon, 9 Oct 2023 09:11:47 +0000 Subject: [PATCH] wavparse: fix buffer leak with adtl tag Fixes: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/3020 Part-of: --- subprojects/gst-plugins-good/gst/wavparse/gstwavparse.c | 1 + 1 file changed, 1 insertion(+) diff --git a/subprojects/gst-plugins-good/gst/wavparse/gstwavparse.c b/subprojects/gst-plugins-good/gst/wavparse/gstwavparse.c index 1b71ccab77..b47324364c 100644 --- a/subprojects/gst-plugins-good/gst/wavparse/gstwavparse.c +++ b/subprojects/gst-plugins-good/gst/wavparse/gstwavparse.c @@ -1559,6 +1559,7 @@ gst_wavparse_stream_headers (GstWavParse * wav) gst_wavparse_adtl_chunk (wav, (const guint8 *) map.data, data_size); gst_buffer_unmap (buf, &map); + gst_buffer_unref (buf); } wav->offset += GST_ROUND_UP_2 (data_size); break;