[vlc-devel] commit: Fixed double free. (Laurent Aimar )
git version control
git at videolan.org
Tue Nov 18 20:05:16 CET 2008
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Tue Nov 18 19:19:50 2008 +0100| [9236f9f6d562a5d76729a8e5be1c88de2cd827b1] | committer: Laurent Aimar
Fixed double free.
Fixed double free.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9236f9f6d562a5d76729a8e5be1c88de2cd827b1
---
modules/demux/ogg.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/modules/demux/ogg.c b/modules/demux/ogg.c
index b004d61..df5c72c 100644
--- a/modules/demux/ogg.c
+++ b/modules/demux/ogg.c
@@ -667,8 +667,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 );
More information about the vlc-devel
mailing list