Commit f372e0fc authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

hls: Fixing a memory leak

parent 348b1785
...@@ -2322,6 +2322,7 @@ static int Peek(stream_t *s, const uint8_t **pp_peek, unsigned int i_peek) ...@@ -2322,6 +2322,7 @@ static int Peek(stream_t *s, const uint8_t **pp_peek, unsigned int i_peek)
peeked = block_Realloc (peeked, 0, i_peek); peeked = block_Realloc (peeked, 0, i_peek);
if (peeked == NULL) if (peeked == NULL)
return 0; return 0;
p_sys->peeked = peeked;
memcpy(peeked->p_buffer, p_buff, i_buff); memcpy(peeked->p_buffer, p_buff, i_buff);
curlen = i_buff; curlen = i_buff;
......
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