Print this page
patch tsoome-feedback

*** 379,389 **** if ((nvlist_alloc(&props, NV_UNIQUE_NAME, 0) != 0) || (nvlist_add_string(props, zfs_prop_to_name(ZFS_PROP_SHARENFS), "off") != 0) || (nvlist_add_string(props, zfs_prop_to_name(ZFS_PROP_SHARESMB), "off") != 0)) { - if (props != NULL) nvlist_free(props); (void) fprintf(stderr, gettext("could not create ZFS clone " "%s: out of memory\n"), zonepath); return (Z_ERR); } --- 379,388 ----
*** 986,996 **** if ((nvlist_alloc(&props, NV_UNIQUE_NAME, 0) != 0) || (nvlist_add_string(props, zfs_prop_to_name(ZFS_PROP_SHARENFS), "off") != 0) || (nvlist_add_string(props, zfs_prop_to_name(ZFS_PROP_SHARESMB), "off") != 0)) { - if (props != NULL) nvlist_free(props); (void) fprintf(stderr, gettext("cannot create ZFS dataset %s: " "out of memory\n"), zfs_name); } --- 985,994 ----