Commit 5b8a7386 authored by Thomas Guillem's avatar Thomas Guillem

posix: use vlc_alloc helper

parent b275203f
......@@ -698,7 +698,7 @@ unsigned vlc_GetCPUCount(void)
u_int numcpus;
processor_info_t cpuinfo;
processorid_t *cpulist = malloc (sizeof (*cpulist) * sysconf(_SC_NPROCESSORS_MAX));
processorid_t *cpulist = vlc_alloc (sysconf(_SC_NPROCESSORS_MAX), sizeof (*cpulist));
if (unlikely(cpulist == NULL))
return 1;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment