Auto-Merge pull request #2957 from niuxu18/collectd-5.8
authorcollectd bot <32910397+collectd-bot@users.noreply.github.com>
Wed, 17 Oct 2018 06:17:17 +0000 (08:17 +0200)
committerGitHub <noreply@github.com>
Wed, 17 Oct 2018 06:17:17 +0000 (08:17 +0200)
Automatically merged due to "Automerge" label

src/virt.c

index 39165bc..71b5b32 100644 (file)
@@ -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;
   }