Skip to content

Commit

Permalink
gstgiosrc: Don't leak scheme string in gst_gio_src_query()
Browse files Browse the repository at this point in the history
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/1078>
  • Loading branch information
thaytan committed Mar 21, 2021
1 parent d7de78e commit 0444cf8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gst/gio/gstgiosrc.c
Expand Up @@ -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);
Expand Down

0 comments on commit 0444cf8

Please sign in to comment.