projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
54c5f18
)
uri: Fix memory leak in gst_uri_join()
author
Sebastian Dröge
<sebastian@centricular.com>
Mon, 29 Sep 2014 09:19:35 +0000
(12:19 +0300)
committer
Sebastian Dröge
<sebastian@centricular.com>
Mon, 29 Sep 2014 09:19:35 +0000
(12:19 +0300)
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.
gst/gsturi.c
patch
|
blob
|
history
diff --git
a/gst/gsturi.c
b/gst/gsturi.c
index
219e6b3
..
1a88b5a
100644
(file)
--- a/
gst/gsturi.c
+++ b/
gst/gsturi.c
@@
-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);
}