summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c43dde3)
raw | patch | inline | side by side (parent: c43dde3)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sat, 5 Dec 2015 13:14:54 +0000 (14:14 +0100) | ||
committer | Florian Forster <octo@collectd.org> | |
Sat, 5 Dec 2015 20:37:01 +0000 (21:37 +0100) |
CID #37989
Signed-off-by: Florian Forster <octo@collectd.org>
Signed-off-by: Florian Forster <octo@collectd.org>
src/zfs_arc.c | patch | blob | history |
diff --git a/src/zfs_arc.c b/src/zfs_arc.c
index 540a1db48683232c0cda930665d91cf08cfcd447..86e7d4c5d18427dea8fe8d911993e280283324f6 100644 (file)
--- a/src/zfs_arc.c
+++ b/src/zfs_arc.c
{
llentry_t *e;
llvalues = malloc(sizeof(long long int) * i);
+ if (llvalues == NULL)
+ {
+ ERROR ("zfs_arc plugin: `malloc' failed.");
+ return (-1);
+ }
int j = 0;
pnl = file_contents;