mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-03 14:08:56 +00:00
hlsdemux: fix invalid free() introduced by last commit
This commit is contained in:
parent
72c5c70b90
commit
1f177beb33
1 changed files with 2 additions and 1 deletions
|
@ -360,6 +360,7 @@ gst_m3u8_update (GstM3U8 * self, gchar * data, gboolean * updated)
|
||||||
while (data && parse_attributes (&data, &a, &v)) {
|
while (data && parse_attributes (&data, &a, &v)) {
|
||||||
if (g_str_equal (a, "URI")) {
|
if (g_str_equal (a, "URI")) {
|
||||||
gchar *key = g_strdup (v);
|
gchar *key = g_strdup (v);
|
||||||
|
gchar *keyp = key;
|
||||||
int len = strlen (key);
|
int len = strlen (key);
|
||||||
|
|
||||||
/* handle the \"key\" case */
|
/* handle the \"key\" case */
|
||||||
|
@ -369,7 +370,7 @@ gst_m3u8_update (GstM3U8 * self, gchar * data, gboolean * updated)
|
||||||
key += 1;
|
key += 1;
|
||||||
|
|
||||||
self->key = uri_join (self->uri, key);
|
self->key = uri_join (self->uri, key);
|
||||||
g_free (key);
|
g_free (keyp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (g_str_has_prefix (data, "#EXTINF:")) {
|
} else if (g_str_has_prefix (data, "#EXTINF:")) {
|
||||||
|
|
Loading…
Reference in a new issue