PostGIS  2.1.10dev-r@@SVN_REVISION@@
int quantile_llist_destroy ( struct quantile_llist **  list,
uint32_t  list_count 
)

Definition at line 4025 of file rt_api.c.

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

Referenced by RASTER_quantileCoverage(), and test_band_stats().

4025  {
4026  struct quantile_llist_element *element = NULL;
4027  uint32_t i;
4028 
4029  if (NULL == *list) return 0;
4030 
4031  for (i = 0; i < list_count; i++) {
4032  element = (*list)[i].head;
4033  while (NULL != element->next) {
4034  quantile_llist_delete(element->next);
4035  }
4036  quantile_llist_delete(element);
4037 
4038  rtdealloc((*list)[i].index);
4039  }
4040 
4041  rtdealloc(*list);
4042  return 1;
4043 }
void rtdealloc(void *mem)
Definition: rt_api.c:882
struct quantile_llist_element * next
Definition: rt_api.h:2331
static int quantile_llist_delete(struct quantile_llist_element *element)
Definition: rt_api.c:4002

Here is the call graph for this function:

Here is the caller graph for this function: