[vlc-commits] os2: use vlc_alloc helper

Thomas Guillem git at videolan.org
Sat Nov 11 17:22:00 CET 2017


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Sat Nov 11 17:18:16 2017 +0100| [b275203fa8b2c7d459d75d8ff1d82f809ace061e] | committer: Thomas Guillem

os2: use vlc_alloc helper

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

 src/os2/specific.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/os2/specific.c b/src/os2/specific.c
index 3f4eb266c7..75a06be098 100644
--- a/src/os2/specific.c
+++ b/src/os2/specific.c
@@ -70,7 +70,7 @@ static void IPCHelperThread( void *arg )
         /* Read a count of arguments */
         DosRead( hpipeIPC, &i_argc, sizeof( i_argc ), &cbActual );
 
-        ppsz_argv = malloc( i_argc * sizeof( *ppsz_argv ));
+        ppsz_argv = vlc_alloc( i_argc, sizeof( *ppsz_argv ));
 
         for( int i_opt = 0; i_opt < i_argc; i_opt++ )
         {



More information about the vlc-commits mailing list