PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ rtdealloc_stringbuffer()

static void rtdealloc_stringbuffer ( STRINGBUFFER buffer,
int  freebuffer 
)
static

Definition at line 774 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().

774  {
775  if (buffer->length) {
776  uint32_t i = 0;
777  for (i = 0; i < buffer->length; i++) {
778  if (buffer->line[i] != NULL)
779  rtdealloc(buffer->line[i]);
780  }
781  rtdealloc(buffer->line);
782  }
783  buffer->line = NULL;
784  buffer->length = 0;
785 
786  if (freebuffer)
787  rtdealloc(buffer);
788 }
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: