From be09be7f3efd349d3bb9e7ed07d08b9155cabbb1 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Wed, 4 Jul 2012 14:06:35 +0200 Subject: [PATCH] unix: fix memory corruption in freebsd.c --- src/unix/freebsd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/unix/freebsd.c b/src/unix/freebsd.c index d916b0b126..f6f441ff16 100644 --- a/src/unix/freebsd.c +++ b/src/unix/freebsd.c @@ -261,7 +261,7 @@ uv_err_t uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) { return uv__new_sys_error(ENOMEM); } - if (sysctlbyname("kern.cp_times", &cp_times, &size, NULL, 0) < 0) { + if (sysctlbyname("kern.cp_times", cp_times, &size, NULL, 0) < 0) { free(cp_times); free(*cpu_infos); return uv__new_sys_error(errno);