mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-23 06:26:23 +00:00
uri: Fix memory leak in gst_uri_join()
The merged path segments are a deep-copied list and we need to free the contained strings too instead of just the list nodes themselves.
This commit is contained in:
parent
54c5f1855c
commit
b9bf5d5ff2
1 changed files with 1 additions and 1 deletions
|
@ -1748,7 +1748,7 @@ gst_uri_join (GstUri * base_uri, GstUri * ref_uri)
|
|||
else {
|
||||
GList *mrgd = _merge (base_uri->path, ref_uri->path);
|
||||
t->path = _remove_dot_segments (mrgd);
|
||||
g_list_free (mrgd);
|
||||
g_list_free_full (mrgd, g_free);
|
||||
}
|
||||
t->query = _gst_uri_copy_query_table (ref_uri->query);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue