PostGIS  2.1.10dev-r@@SVN_REVISION@@
void lwgeom_parser_result_free ( LWGEOM_PARSER_RESULT parser_result)

Definition at line 825 of file lwin_wkt.c.

References struct_lwgeom_parser_result::geom, lwfree(), lwgeom_free(), and struct_lwgeom_parser_result::serialized_lwgeom.

Referenced by cu_wkb_in(), cu_wkb_malformed_in(), cu_wkt_in(), LWGEOM_from_text(), LWGEOM_in(), and test_wkt_in_errlocation().

826 {
827  if ( parser_result->geom )
828  {
829  lwgeom_free(parser_result->geom);
830  parser_result->geom = 0;
831  }
832  if ( parser_result->serialized_lwgeom )
833  {
834  lwfree(parser_result->serialized_lwgeom );
835  parser_result->serialized_lwgeom = 0;
836  }
837  /* We don't free parser_result->message because
838  it is a const *char */
839 }
void lwfree(void *mem)
Definition: lwutil.c:190
void lwgeom_free(LWGEOM *geom)
Definition: lwgeom.c:1006

Here is the call graph for this function:

Here is the caller graph for this function: