PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ circ_tree_free()

void circ_tree_free ( CIRC_NODE node)

Recurse from top of node tree and free all children.

does not free underlying point array.

Definition at line 50 of file lwgeodetic_tree.c.

References circ_tree_free(), lwfree(), circ_node::nodes, and circ_node::num_nodes.

Referenced by circ_tree_free(), CircTreeBuilder(), CircTreeFreer(), geography_distance_cache_tolerance(), geography_tree_distance(), test_tree_circ_create(), test_tree_circ_distance(), test_tree_circ_distance_threshold(), test_tree_circ_pip(), and test_tree_circ_pip2().

51 {
52  int i;
53  if ( ! node ) return;
54 
55  for ( i = 0; i < node->num_nodes; i++ )
56  circ_tree_free(node->nodes[i]);
57 
58  if ( node->nodes ) lwfree(node->nodes);
59  lwfree(node);
60 }
void lwfree(void *mem)
Definition: lwutil.c:244
void circ_tree_free(CIRC_NODE *node)
Recurse from top of node tree and free all children.
struct circ_node ** nodes
Here is the call graph for this function:
Here is the caller graph for this function: