Commit e6801f12 authored by Francois Cartegnie's avatar Francois Cartegnie

demux: xspf: fix leak and broken logic (cid #1253125)

parent 6f78ecc7
...@@ -266,8 +266,9 @@ static bool parse_playlist_node COMPLEX_INTERFACE ...@@ -266,8 +266,9 @@ static bool parse_playlist_node COMPLEX_INTERFACE
/* simple element content */ /* simple element content */
case XML_READER_TEXT: case XML_READER_TEXT:
FREE_VALUE();
psz_value = strdup(name); psz_value = strdup(name);
if (unlikely(!name)) if (unlikely(!psz_value))
goto end; goto end;
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment