From 5f95e26447bb3105d26c3d28b782765a0a8605d5 Mon Sep 17 00:00:00 2001 From: sarah <993273596@qq.com> Date: Wed, 17 Oct 2018 09:59:21 +0800 Subject: [PATCH] Update virt.c --- src/virt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/virt.c b/src/virt.c index 39165bcf..71b5b324 100644 --- a/src/virt.c +++ b/src/virt.c @@ -1189,13 +1189,13 @@ static int get_vcpu_stats(virDomainPtr domain, unsigned short nr_virt_cpu) { virVcpuInfoPtr vinfo = calloc(nr_virt_cpu, sizeof(vinfo[0])); if (vinfo == NULL) { - ERROR(PLUGIN_NAME " plugin: malloc failed."); + ERROR(PLUGIN_NAME " plugin: calloc failed."); return -1; } unsigned char *cpumaps = calloc(nr_virt_cpu, cpu_map_len); if (cpumaps == NULL) { - ERROR(PLUGIN_NAME " plugin: malloc failed."); + ERROR(PLUGIN_NAME " plugin: calloc failed."); sfree(vinfo); return -1; } -- 2.11.0