[vlc-commits] cdrom: use vlc_alloc helper

Thomas Guillem git at videolan.org
Sat Nov 11 18:59:48 CET 2017


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Sat Nov 11 18:40:22 2017 +0100| [3dfca696ee8b0d77d92491940235491d2e7cc61b] | committer: Thomas Guillem

cdrom: use vlc_alloc helper

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

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

diff --git a/modules/access/vcd/cdrom.c b/modules/access/vcd/cdrom.c
index afc48d924d..732d7f3614 100644
--- a/modules/access/vcd/cdrom.c
+++ b/modules/access/vcd/cdrom.c
@@ -545,7 +545,7 @@ int ioctl_ReadSectors( vlc_object_t *p_this, const vcddev_t *p_vcddev,
     uint8_t *p_block;
 
     if( i_type == VCD_TYPE )
-        p_block = malloc( VCD_SECTOR_SIZE * i_nb );
+        p_block = vlc_alloc( i_nb, VCD_SECTOR_SIZE );
     else
         p_block = p_buffer;
 



More information about the vlc-commits mailing list