Commit f6d206ee authored by Laurent Aimar's avatar Laurent Aimar

Fixed double free.

Fixed double free.
(cherry picked from commit 9236f9f6)
Signed-off-by: default avatarLaurent Aimar <fenrir@videolan.org>
parent c652dde1
......@@ -621,8 +621,7 @@ static void Ogg_DecodePacket( demux_t *p_demux,
free( p_stream->fmt.p_extra );
p_stream->fmt.i_extra = p_stream->i_headers;
p_stream->fmt.p_extra =
realloc( p_stream->fmt.p_extra, p_stream->i_headers );
p_stream->fmt.p_extra = malloc( p_stream->i_headers );
if( p_stream->fmt.p_extra )
memcpy( p_stream->fmt.p_extra, p_stream->p_headers,
p_stream->i_headers );
......
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