PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ lwt_FreeTopology()

void lwt_FreeTopology ( LWT_TOPOLOGY topo)

Release memory associated with an LWT_TOPOLOGY.

Parameters
topothe topology to release (it's not removed from db)

Definition at line 519 of file lwgeom_topo.c.

References LWT_TOPOLOGY_T::be_iface, lwfree(), lwnotice(), lwt_be_freeTopology(), and lwt_be_lastErrorMessage().

520 {
521  if ( ! lwt_be_freeTopology(topo) ) {
522  lwnotice("Could not release backend topology memory: %s",
524  }
525  lwfree(topo);
526 }
void lwnotice(const char *fmt,...)
Write a notice out to the notice handler.
Definition: lwutil.c:61
void lwfree(void *mem)
Definition: lwutil.c:214
int lwt_be_freeTopology(LWT_TOPOLOGY *topo)
Definition: lwgeom_topo.c:154
const LWT_BE_IFACE * be_iface
const char * lwt_be_lastErrorMessage(const LWT_BE_IFACE *be)
Definition: lwgeom_topo.c:124
Here is the call graph for this function: