FreeBSD/usr.sbin/pmcstat/pmcpl_callgraph.c
/*
 * Free a node and its children.
 */
Free a node and its children.
Free a node and its children .
static void
pmcstat_cgnode_free(struct pmcstat_cgnode *cg)
{
	struct pmcstat_cgnode *cgc, *cgtmp;
	LIST_FOREACH_SAFE(cgc, &cg->pcg_children, pcg_sibling, cgtmp)
		pmcstat_cgnode_free(cgc);
	free(cg);
}
static void pmcstat_cgnode_free ( struct pmcstat_cgnode * cg ) { struct pmcstat_cgnode * cgc , * cgtmp ; LIST_FOREACH_SAFE ( cgc , & cg -> pcg_children , pcg_sibling , cgtmp ) pmcstat_cgnode_free ( cgc ) ; free ( cg ) ; }
Free a node and its children.
Free a node and its children .