summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Schmidt <jan@centricular.com>2021-03-21 16:46:54 +1100
committerTim-Philipp Müller <tim@centricular.com>2021-03-25 11:06:14 +0000
commitac91f637ec1bc9111efa7598e6dfe6e09cbb8adf (patch)
tree1a5272681e75b42b19b12345e150c02add3d8937
parent69ea918790218ab247b31f3b14d597a951664c41 (diff)
downloadgstreamer-plugins-base-ac91f637ec1bc9111efa7598e6dfe6e09cbb8adf.tar.gz
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: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1084>
-rw-r--r--gst/gio/gstgiosrc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gst/gio/gstgiosrc.c b/gst/gio/gstgiosrc.c
index 167f941d9..b99b6a1a3 100644
--- a/gst/gio/gstgiosrc.c
+++ b/gst/gio/gstgiosrc.c
@@ -275,6 +275,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);