projects
/
platform
/
upstream
/
gst-plugins-bad.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
72c5c70
)
hlsdemux: fix invalid free() introduced by last commit
author
Alessandro Decina
<alessandro.d@gmail.com>
Mon, 18 Mar 2013 20:01:59 +0000
(21:01 +0100)
committer
Alessandro Decina
<alessandro.d@gmail.com>
Mon, 18 Mar 2013 20:03:50 +0000
(21:03 +0100)
gst/hls/m3u8.c
patch
|
blob
|
history
diff --git
a/gst/hls/m3u8.c
b/gst/hls/m3u8.c
index
0f54d10
..
3b82458
100644
(file)
--- a/
gst/hls/m3u8.c
+++ b/
gst/hls/m3u8.c
@@
-360,6
+360,7
@@
gst_m3u8_update (GstM3U8 * self, gchar * data, gboolean * updated)
while (data && parse_attributes (&data, &a, &v)) {
if (g_str_equal (a, "URI")) {
gchar *key = g_strdup (v);
+ gchar *keyp = key;
int len = strlen (key);
/* handle the \"key\" case */
@@
-369,7
+370,7
@@
gst_m3u8_update (GstM3U8 * self, gchar * data, gboolean * updated)
key += 1;
self->key = uri_join (self->uri, key);
- g_free (key);
+ g_free (key
p
);
}
}
} else if (g_str_has_prefix (data, "#EXTINF:")) {