]> git.proxmox.com Git - mirror_zfs.git/blobdiff - cmd/zfs/zfs_main.c
Illumos 6659 - nvlist_free(NULL) is a no-op
[mirror_zfs.git] / cmd / zfs / zfs_main.c
index 57960745134f4e0fecc622a7b4375aa047dcce04..7525afcbfd6df6cb098b7b5e80ae54e10565199e 100644 (file)
@@ -5294,8 +5294,7 @@ zfs_do_allow_unallow_impl(int argc, char **argv, boolean_t un)
 
 cleanup0:
        nvlist_free(perm_nvl);
-       if (update_perm_nvl != NULL)
-               nvlist_free(update_perm_nvl);
+       nvlist_free(update_perm_nvl);
 cleanup1:
        fs_perm_set_fini(&fs_perm_set);
 cleanup2: