[vlc-commits] demux: mp4: fix leak

Francois Cartegnie git at videolan.org
Wed Sep 9 11:46:30 CEST 2015


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Sep  8 19:22:39 2015 +0200| [897e35aa6bd6b0c3030d14fb7cacb1511a60b74d] | committer: Francois Cartegnie

demux: mp4: fix leak

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=897e35aa6bd6b0c3030d14fb7cacb1511a60b74d
---

 modules/demux/mp4/libmp4.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/mp4/libmp4.c b/modules/demux/mp4/libmp4.c
index 314bd26..ce8daea 100644
--- a/modules/demux/mp4/libmp4.c
+++ b/modules/demux/mp4/libmp4.c
@@ -4247,7 +4247,7 @@ MP4_Box_t *MP4_BoxGetRoot( stream_t *p_stream )
     return p_root;
 
 error:
-    free( p_vroot );
+    MP4_BoxFree( p_vroot );
     MP4_Seek( p_stream, 0 );
     return NULL;
 }



More information about the vlc-commits mailing list