X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fzfs_arc.c;h=3f5c398fdc889f435b008a686bbaf1182df12f38;hb=f8e1e81d433c5b4e06792c2617abf0e6ec9e76d9;hp=37a918b54bec75daa872ac1d40e1566af888d218;hpb=6600bd1351bf81e0831e7ad95ee37a7b28cbdf94;p=collectd.git diff --git a/src/zfs_arc.c b/src/zfs_arc.c index 37a918b5..3f5c398f 100644 --- a/src/zfs_arc.c +++ b/src/zfs_arc.c @@ -28,6 +28,7 @@ **/ #include "collectd.h" + #include "common.h" #include "plugin.h" @@ -89,12 +90,10 @@ static long long get_zfs_value(kstat_t *ksp, const char *key) static void free_zfs_values (kstat_t *ksp) { - llentry_t *e; - if (ksp == NULL) return; - for (e = llist_head (ksp); e != NULL; e = e->next) + for (llentry_t *e = llist_head (ksp); e != NULL; e = e->next) { sfree (e->key); sfree (e->value);