PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ bytebuffer_destroy_buffer()

void bytebuffer_destroy_buffer ( bytebuffer_t s)

Free the bytebuffer_t and all memory managed within it.

Definition at line 104 of file bytebuffer.c.

References bytebuffer_t::buf_start, bytebuffer_t::buf_static, and lwfree().

Referenced by bytebuffer_destroy(), lwgeom_to_twkb_with_idlist(), lwgeom_write_to_buffer(), and ptarray_to_twkb_buf().

105 {
106  if ( s->buf_start != s->buf_static )
107  {
108  lwfree(s->buf_start);
109  s->buf_start = NULL;
110  }
111 
112  return;
113 }
uint8_t buf_static[BYTEBUFFER_STATICSIZE]
Definition: bytebuffer.h:44
void lwfree(void *mem)
Definition: lwutil.c:244
uint8_t * buf_start
Definition: bytebuffer.h:41
Here is the call graph for this function:
Here is the caller graph for this function: