From e89a64cd1f39469c09ce62305fc14ce7edfeb7c0 Mon Sep 17 00:00:00 2001 From: Wang Chuan Date: Mon, 7 Aug 2023 14:18:21 +0800 Subject: [PATCH] gstadaptivedemux: fix memory leak GstQuery leaks when using invalid url Part-of: --- .../gst-plugins-good/ext/adaptivedemux2/gstadaptivedemux.c | 1 + 1 file changed, 1 insertion(+) diff --git a/subprojects/gst-plugins-good/ext/adaptivedemux2/gstadaptivedemux.c b/subprojects/gst-plugins-good/ext/adaptivedemux2/gstadaptivedemux.c index b0a94cb98d..4547e514d5 100644 --- a/subprojects/gst-plugins-good/ext/adaptivedemux2/gstadaptivedemux.c +++ b/subprojects/gst-plugins-good/ext/adaptivedemux2/gstadaptivedemux.c @@ -986,6 +986,7 @@ handle_incoming_manifest (GstAdaptiveDemux * demux) GST_ELEMENT_ERROR (demux, STREAM, DEMUX, (_("Invalid manifest URI")), ("Manifest URI needs to use either data:, http:// or https://")); + gst_query_unref (query); ret = FALSE; goto unlock_out; }