FreeBSD/usr.sbin/mountd/mountd.c
/*
 * Free up an exports list component
 */
Free up an exports list component
Free up an exports list component
static void
free_exp(struct exportlist *ep)
{
	if (ep->ex_defdir) {
		free_host(ep->ex_defdir->dp_hosts);
		free((caddr_t)ep->ex_defdir);
	}
	if (ep->ex_fsdir)
		free(ep->ex_fsdir);
	if (ep->ex_indexfile)
		free(ep->ex_indexfile);
	free_dir(ep->ex_dirl);
	free((caddr_t)ep);
}
static void free_exp ( struct exportlist * ep ) { if ( ep -> ex_defdir ) { free_host ( ep -> ex_defdir -> dp_hosts ) ; free ( ( caddr_t ) ep -> ex_defdir ) ; } if ( ep -> ex_fsdir ) free ( ep -> ex_fsdir ) ; if ( ep -> ex_indexfile ) free ( ep -> ex_indexfile ) ; free_dir ( ep -> ex_dirl ) ; free ( ( caddr_t ) ep ) ; }
Free up an exports list component
Free up an exports list component