diff --git a/cmd/zpool/zpool_iter.c b/cmd/zpool/zpool_iter.c index b397c7ec2..ac64e977e 100644 --- a/cmd/zpool/zpool_iter.c +++ b/cmd/zpool/zpool_iter.c @@ -447,7 +447,7 @@ vdev_cmd_data_list_t * all_pools_for_each_vdev_run(int argc, char **argv, char *cmd) { vdev_cmd_data_list_t *vcdl; - vcdl = safe_malloc(sizeof (vcdl)); + vcdl = safe_malloc(sizeof (vdev_cmd_data_list_t)); vcdl->cmd = cmd; /* Gather our list of all vdevs in all pools */