[vlc-commits] vcd: fix double free

Kazuki Yamaguchi git at videolan.org
Mon Aug 31 20:46:11 CEST 2015


vlc | branch: master | Kazuki Yamaguchi <k at rhe.jp> | Mon Aug 31 23:44:44 2015 +0900| [5bf000648fb414c6c4ad98d6a69cf8a8b25a2ec5] | committer: Rémi Denis-Courmont

vcd: fix double free

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

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

 modules/access/vcd/cdrom.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/access/vcd/cdrom.c b/modules/access/vcd/cdrom.c
index a4a8bd4..b38e81c 100644
--- a/modules/access/vcd/cdrom.c
+++ b/modules/access/vcd/cdrom.c
@@ -900,6 +900,7 @@ static int OpenVCDImage( vlc_object_t * p_this, const char *psz_dev,
              (int)i_tracks, (int)p_sectors[i_tracks] );
     p_vcddev->i_tracks = ++i_tracks;
     p_vcddev->p_sectors = p_sectors;
+    p_sectors = NULL;
     i_ret = 0;
 
 error:



More information about the vlc-commits mailing list