[vlc-commits] demux: mp4: missing NULL after freed
    Francois Cartegnie 
    git at videolan.org
       
    Mon Aug 22 17:50:07 CEST 2016
    
    
  
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Aug 22 23:49:05 2016 +0800| [b83abeccc95e99c1704f551cdc9141bef273b52a] | committer: Francois Cartegnie
demux: mp4: missing NULL after freed
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b83abeccc95e99c1704f551cdc9141bef273b52a
---
 modules/demux/mp4/libmp4.c | 1 +
 1 file changed, 1 insertion(+)
diff --git a/modules/demux/mp4/libmp4.c b/modules/demux/mp4/libmp4.c
index 819fedd..72a5605 100644
--- a/modules/demux/mp4/libmp4.c
+++ b/modules/demux/mp4/libmp4.c
@@ -259,6 +259,7 @@ static MP4_Box_t *MP4_ReadBoxRestricted( stream_t *p_stream, MP4_Box_t *p_father
     {
         msg_Warn( p_stream, "Failed reading box %4.4s", (char*) &peekbox.i_type );
         MP4_BoxFree( p_box );
+        p_box = NULL;
     }
 
     /* Check is we consumed all data */
    
    
More information about the vlc-commits
mailing list