projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
write_riemann: kill old protobuf files
[collectd.git]
/
src
/
virt.c
diff --git
a/src/virt.c
b/src/virt.c
index
79d4682
..
bbf5afc
100644
(file)
--- a/
src/virt.c
+++ b/
src/virt.c
@@
-686,7
+686,7
@@
refresh_lists (void)
int *domids;
/* Get list of domains. */
- domids = malloc (sizeof (
int
) * n);
+ domids = malloc (sizeof (
*domids
) * n);
if (domids == 0) {
ERROR (PLUGIN_NAME " plugin: malloc failed.");
return -1;