Commit fe06664f authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen Committed by Jean-Baptiste Kempf

hls: Fixing a memory leak

(cherry picked from commit f372e0fc)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 2c5b54ff
......@@ -2316,6 +2316,7 @@ static int Peek(stream_t *s, const uint8_t **pp_peek, unsigned int i_peek)
peeked = block_Realloc (peeked, 0, i_peek);
if (peeked == NULL)
return 0;
p_sys->peeked = peeked;
memcpy(peeked->p_buffer, p_buff, 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