src/usr.sbin/mountd/mountd.c
/*
 * Free up a group list.
 */
Free up a group list.
Free up a group list .
static void
free_grp(struct grouplist *grp)
{
	if (grp->gr_type == GT_HOST) {
		if (grp->gr_ptr.gt_addrinfo != NULL)
			freeaddrinfo(grp->gr_ptr.gt_addrinfo);
	} else if (grp->gr_type == GT_NET) {
		if (grp->gr_ptr.gt_net.nt_name)
			free(grp->gr_ptr.gt_net.nt_name);
	}
	free((caddr_t)grp);
}
static void free_grp ( struct grouplist * grp ) { if ( grp -> gr_type == GT_HOST ) { if ( grp -> gr_ptr . gt_addrinfo != NULL ) freeaddrinfo ( grp -> gr_ptr . gt_addrinfo ) ; } else if ( grp -> gr_type == GT_NET ) { if ( grp -> gr_ptr . gt_net . nt_name ) free ( grp -> gr_ptr . gt_net . nt_name ) ; } free ( ( caddr_t ) grp ) ; }
Free up a group list.
Free up a group list .