PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ quantile_llist_destroy()

int quantile_llist_destroy ( struct quantile_llist **  list,
uint32_t  list_count 
)

Definition at line 879 of file rt_statistics.c.

879 {
880 struct quantile_llist_element *element = NULL;
881 uint32_t i;
882
883 if (NULL == *list) return 0;
884
885 for (i = 0; i < list_count; i++) {
886 element = (*list)[i].head;
887 while (NULL != element->next) {
888 quantile_llist_delete(element->next);
889 }
890 quantile_llist_delete(element);
891
892 rtdealloc((*list)[i].index);
893 }
894
895 rtdealloc(*list);
896 return 1;
897}
void rtdealloc(void *mem)
Definition rt_context.c:206
static int quantile_llist_delete(struct quantile_llist_element *element)
struct quantile_llist_element * next
Definition librtcore.h:2616

References quantile_llist_element::next, quantile_llist_delete(), and rtdealloc().

Referenced by test_band_stats().

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