[vlc-devel] commit: Fix memleak ( Rémi Denis-Courmont )
git version control
git at videolan.org
Wed Mar 26 19:19:44 CET 2008
vlc | branch: master | Rémi Denis-Courmont <rem at videolan.org> | Wed Mar 26 20:20:13 2008 +0200| [32b8a2ac61d2f2564e68112249fe79aa81b740ec]
Fix memleak
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=32b8a2ac61d2f2564e68112249fe79aa81b740ec
---
modules/demux/mp4/libmp4.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/modules/demux/mp4/libmp4.c b/modules/demux/mp4/libmp4.c
index 94d83d1..0394228 100644
--- a/modules/demux/mp4/libmp4.c
+++ b/modules/demux/mp4/libmp4.c
@@ -1746,7 +1746,10 @@ static int MP4_ReadBox_padb( stream_t *p_stream, MP4_Box_t *p_box )
for( i = 0; i < i_read / 2 ; i++ )
{
if( i >= count )
+ {
+ MP4_FreeBox_padb( p_box );
MP4_READBOX_EXIT( 0 );
+ }
p_box->data.p_padb->i_reserved1[i] = ( (*p_peek) >> 7 )&0x01;
p_box->data.p_padb->i_pad2[i] = ( (*p_peek) >> 4 )&0x07;
p_box->data.p_padb->i_reserved1[i] = ( (*p_peek) >> 3 )&0x01;
More information about the vlc-devel
mailing list