src/parsetree.c
// Free this node and any below it, but not any successive nodes
Free this node and any below it, but not any successive nodes
Free this node and any below it but not any successive nodes
void FreeNode(struct tree_node* pNode)
{
	if (pNode != NULL)
	{
		int i;
		for (i = 0; i < pNode->numOperands; i++)
			FreeTree(pNode->operands[i]);
		free(pNode->operands);
		if (pNode->sval != NULL)
			free(pNode->sval);
		free(pNode);
	}
}
void FreeNode ( struct tree_node * pNode ) { if ( pNode != NULL ) { int i ; for ( i = 0 ; i < pNode -> numOperands ; i ++ ) FreeTree ( pNode -> operands [ i ] ) ; free ( pNode -> operands ) ; if ( pNode -> sval != NULL ) free ( pNode -> sval ) ; free ( pNode ) ; } }
Free this node and any below it, but not any successive nodes
Free this node and any below it but not any successive nodes