[vlc-commits] demux: mp4: fix leak (cid #1253114)

Francois Cartegnie git at videolan.org
Wed Jan 25 10:08:21 CET 2017


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Jan 25 09:58:44 2017 +0100| [013f3489fb324bb0254bed42ca4bfd30111f364e] | committer: Francois Cartegnie

demux: mp4: fix leak (cid #1253114)

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

 modules/demux/mp4/mp4.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/demux/mp4/mp4.c b/modules/demux/mp4/mp4.c
index 1d396df..7b912ac 100644
--- a/modules/demux/mp4/mp4.c
+++ b/modules/demux/mp4/mp4.c
@@ -830,6 +830,7 @@ static int Open( vlc_object_t * p_this )
                 if( strstr( psz_ref, "qt5gateQT" ) )
                 {
                     msg_Dbg( p_demux, "ignoring pseudo ref =`%s'", psz_ref );
+                    free( psz_ref );
                     continue;
                 }
                 if( !strncmp( psz_ref, "http://", 7 ) ||



More information about the vlc-commits mailing list