loader: zfs.c is missing malloc checks, fix it
malloc() can return NULL, we need to check the return value.