PostGIS  2.5.0beta2dev-r@@SVN_REVISION@@

◆ rtdealloc_stringbuffer()

static void rtdealloc_stringbuffer ( STRINGBUFFER buffer,
int  freebuffer 
)
static

Definition at line 777 of file raster2pgsql.c.

References stringbuffer_t::length, stringbuffer_t::line, and rtdealloc().

Referenced by build_overview(), convert_raster(), flush_stringbuffer(), main(), and process_rasters().

777  {
778  if (buffer->length) {
779  uint32_t i = 0;
780  for (i = 0; i < buffer->length; i++) {
781  if (buffer->line[i] != NULL)
782  rtdealloc(buffer->line[i]);
783  }
784  rtdealloc(buffer->line);
785  }
786  buffer->line = NULL;
787  buffer->length = 0;
788 
789  if (freebuffer)
790  rtdealloc(buffer);
791 }
uint32_t length
Definition: raster2pgsql.h:196
unsigned int uint32_t
Definition: uthash.h:78
void rtdealloc(void *mem)
Definition: rt_context.c:186
Here is the call graph for this function:
Here is the caller graph for this function: