gstadaptivedemux: fix memory leak
authorWang Chuan <ouchuanm@outlook.com>
Mon, 7 Aug 2023 06:18:21 +0000 (14:18 +0800)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Sat, 12 Aug 2023 15:17:46 +0000 (15:17 +0000)
GstQuery leaks when using invalid url

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5156>

subprojects/gst-plugins-good/ext/adaptivedemux2/gstadaptivedemux.c

index b7b1cd8..a4cc824 100644 (file)
@@ -960,6 +960,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;
     }