diff --git a/src/zfs_arc.c b/src/zfs_arc.c
index 2577bb017db900904894e6f5a6f1da53a6b4c1c8..41a89b16aef5348bb26a6d24a43fad50f316d5b7 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;