Print this page
patch tsoome-feedback
@@ -379,11 +379,10 @@
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);
}
@@ -986,11 +985,10 @@
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);
}