[vlc-commits] vcd: fix double free
Kazuki Yamaguchi
git at videolan.org
Wed Oct 21 19:05:25 CEST 2015
vlc/vlc-2.2 | branch: master | Kazuki Yamaguchi <k at rhe.jp> | Mon Aug 31 23:44:44 2015 +0900| [50603d508b59a251e76b9ebdc2086a3b7d0e8ae7] | committer: Jean-Baptiste Kempf
vcd: fix double free
Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>
(cherry picked from commit 5bf000648fb414c6c4ad98d6a69cf8a8b25a2ec5)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=50603d508b59a251e76b9ebdc2086a3b7d0e8ae7
---
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 efa3cd2..58dbcaa 100644
--- a/modules/access/vcd/cdrom.c
+++ b/modules/access/vcd/cdrom.c
@@ -903,6 +903,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