Commit eed03739 authored by ivoire's avatar ivoire
Browse files

Fix memory leak (cid #1049562)

parent ced821f1
......@@ -1834,7 +1834,10 @@ static ssize_t read_M3U8_from_stream(stream_t *s, uint8_t **buffer)
if (bytes == 0)
break; /* EOF ? */
else if (bytes < 0)
{
free (p);
return bytes;
}
if ( (total_bytes + bytes + 1) > total_allocated )
{
......
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