PostGIS  2.1.10dev-r@@SVN_REVISION@@
static void rtdealloc_stringbuffer ( STRINGBUFFER buffer,
int  freebuffer 
)
static

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

767  {
768  if (buffer->length) {
769  uint32_t i = 0;
770  for (i = 0; i < buffer->length; i++) {
771  if (buffer->line[i] != NULL)
772  rtdealloc(buffer->line[i]);
773  }
774  rtdealloc(buffer->line);
775  }
776  buffer->line = NULL;
777  buffer->length = 0;
778 
779  if (freebuffer)
780  rtdealloc(buffer);
781 }
void rtdealloc(void *mem)
Definition: rt_api.c:882
uint32_t length
Definition: raster2pgsql.h:191

Here is the call graph for this function:

Here is the caller graph for this function: