PostGIS  2.5.7dev-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.

51 {
52  uint32_t i;
53  if ( ! node ) return;
54 
55  if (node->nodes)
56  {
57  for (i = 0; i < node->num_nodes; i++)
58  circ_tree_free(node->nodes[i]);
59  lwfree(node->nodes);
60  }
61  lwfree(node);
62 }
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.
uint32_t num_nodes
struct circ_node ** nodes
unsigned int uint32_t
Definition: uthash.h:78

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

Referenced by 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().

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