PostGIS  3.7.0dev-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 49 of file lwgeodetic_tree.c.

50 {
51  uint32_t i;
52  if ( ! node ) return;
53 
54  if (node->nodes)
55  {
56  for (i = 0; i < node->num_nodes; i++)
57  circ_tree_free(node->nodes[i]);
58  lwfree(node->nodes);
59  }
60  lwfree(node);
61 }
void lwfree(void *mem)
Definition: lwutil.c:248
void circ_tree_free(CIRC_NODE *node)
Recurse from top of node tree and free all children.
uint32_t num_nodes
struct circ_node ** nodes

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

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

Here is the call graph for this function:
Here is the caller graph for this function: