diff options
author | Alessandro Decina <alessandro.d@gmail.com> | 2013-03-18 21:01:59 +0100 |
---|---|---|
committer | Alessandro Decina <alessandro.d@gmail.com> | 2013-03-18 21:03:50 +0100 |
commit | 1f177beb33c3d3bb6df7da6b47d3bbd631bf40b1 (patch) | |
tree | efbee7d0999984bb8263daa73f632f8f57a71b5f /gst/hls | |
parent | 72c5c70b90c79efcf013e0e414809931815be797 (diff) | |
download | gstreamer-plugins-bad-1f177beb33c3d3bb6df7da6b47d3bbd631bf40b1.tar.gz |
hlsdemux: fix invalid free() introduced by last commit
Diffstat (limited to 'gst/hls')
-rw-r--r-- | gst/hls/m3u8.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gst/hls/m3u8.c b/gst/hls/m3u8.c index 0f54d1066..3b82458a1 100644 --- 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 (keyp); } } } else if (g_str_has_prefix (data, "#EXTINF:")) { |