From: collectd bot <32910397+collectd-bot@users.noreply.github.com> Date: Wed, 17 Oct 2018 06:17:17 +0000 (+0200) Subject: Auto-Merge pull request #2957 from niuxu18/collectd-5.8 X-Git-Url: https://git.octo.it/?p=collectd.git;a=commitdiff_plain;h=48362624e4c47bf3040b5c32cafaf5199d6ad4ac;hp=034cb2347f873ee33d301cf259ba47d549327bf6 Auto-Merge pull request #2957 from niuxu18/collectd-5.8 Automatically merged due to "Automerge" label --- 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; }