FreeBSD/lib/libjail/jail.c
/*
 * Free the contents of a jail parameter list (but not the list itself).
 */
Free the contents of a jail parameter list (but not the list itself).
Free the contents of a jail parameter list ( but not the list itself ) .
void
jailparam_free(struct jailparam *jp, unsigned njp)
{
	unsigned j;
	for (j = 0; j < njp; j++) {
		free(jp[j].jp_name);
		if (!(jp[j].jp_flags & JP_RAWVALUE))
			free(jp[j].jp_value);
	}
}
void jailparam_free ( struct jailparam * jp , unsigned njp ) { unsigned j ; for ( j = 0 ; j < njp ; j ++ ) { free ( jp [ j ] . jp_name ) ; if ( ! ( jp [ j ] . jp_flags & JP_RAWVALUE ) ) free ( jp [ j ] . jp_value ) ; } }
Free the contents of a jail parameter list (but not the list itself).
Free the contents of a jail parameter list ( but not the list itself ) .