Merge pull request #312 from jazzmes/libvirt-mem-usage
authorPierre-Yves Ritschard <pyr@spootnik.org>
Thu, 31 Jul 2014 21:49:35 +0000 (23:49 +0200)
committerPierre-Yves Ritschard <pyr@spootnik.org>
Thu, 31 Jul 2014 21:49:35 +0000 (23:49 +0200)
Included memory usage per VM

1  2 
src/libvirt.c

diff --cc src/libvirt.c
@@@ -537,9 -477,9 +560,9 @@@ lv_read (void
                  /* cpu map = */ NULL, /* cpu map length = */ 0);
          if (status < 0)
          {
 -            ERROR ("libvirt plugin: virDomainGetVcpus failed with status %i.",
 +            ERROR (PLUGIN_NAME " plugin: virDomainGetVcpus failed with status %i.",
                      status);
-             free (vinfo);
+             sfree (vinfo);
              continue;
          }