From 0444cf8fcc2cf9c42909de846290d8a07fc679a8 Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Sun, 21 Mar 2021 16:46:54 +1100 Subject: [PATCH] gstgiosrc: Don't leak scheme string in gst_gio_src_query() Add a g_free() in the code path that forwards the query to the parent handler. Part-of: --- gst/gio/gstgiosrc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gst/gio/gstgiosrc.c b/gst/gio/gstgiosrc.c index 646220d90c..60b12b2769 100644 --- a/gst/gio/gstgiosrc.c +++ b/gst/gio/gstgiosrc.c @@ -485,6 +485,7 @@ gst_gio_src_query (GstBaseSrc * base_src, GstQuery * query) "no random access possible", scheme); } else { GST_LOG_OBJECT (src, "unhandled protocol '%s', asking parent", scheme); + g_free (scheme); goto forward_parent; } g_free (scheme);