From c2ec5e5fcec0e222a411c1b311509fd40b6b0315 Mon Sep 17 00:00:00 2001 From: Derk-Jan Hartman Date: Mon, 27 Nov 2006 21:30:13 +0000 Subject: [PATCH] * mp4: fix memleak in mov ref. files handling --- 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 0d84006386..fbdac062e8 100644 --- a/modules/demux/mp4/mp4.c +++ b/modules/demux/mp4/mp4.c @@ -405,6 +405,7 @@ static int Open( vlc_object_t * p_this ) asprintf( &psz_absolute, "%s://%s%s", p_demux->psz_access, psz_path, psz_ref ); + if( psz_ref ) free( psz_ref ); psz_ref = psz_absolute; free( psz_path ); } -- GitLab