git.videolan.org
/
vlc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
442eb5a
)
Fixed double free.
author
Laurent Aimar
<fenrir@videolan.org>
Tue, 18 Nov 2008 18:19:50 +0000
(19:19 +0100)
committer
Laurent Aimar
<fenrir@videolan.org>
Tue, 18 Nov 2008 18:19:50 +0000
(19:19 +0100)
Fixed double free.
modules/demux/ogg.c
patch
|
blob
|
history
diff --git
a/modules/demux/ogg.c
b/modules/demux/ogg.c
index
b004d61
..
df5c72c
100644
(file)
--- 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 );