FreeBSD/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_util.c
/*
 * Called to free the src and dst nvlists stored in the command structure.
 */
Called to free the src and dst nvlists stored in the command structure.
Called to free the src and dst nvlists stored in the command structure .
void
zcmd_free_nvlists(zfs_cmd_t *zc)
{
	free((void *)(uintptr_t)zc->zc_nvlist_conf);
	free((void *)(uintptr_t)zc->zc_nvlist_src);
	free((void *)(uintptr_t)zc->zc_nvlist_dst);
	zc->zc_nvlist_conf = NULL;
	zc->zc_nvlist_src = NULL;
	zc->zc_nvlist_dst = NULL;
}
void zcmd_free_nvlists ( zfs_cmd_t * zc ) { free ( ( void * ) ( uintptr_t ) zc -> zc_nvlist_conf ) ; free ( ( void * ) ( uintptr_t ) zc -> zc_nvlist_src ) ; free ( ( void * ) ( uintptr_t ) zc -> zc_nvlist_dst ) ; zc -> zc_nvlist_conf = NULL ; zc -> zc_nvlist_src = NULL ; zc -> zc_nvlist_dst = NULL ; }
Called to free the src and dst nvlists stored in the command structure.
Called to free the src and dst nvlists stored in the command structure .