[postgis-tickets] r14925 - Do not leak a serialized geometry
Sandro
strk at kbt.io
Tue May 31 00:58:21 PDT 2016
Author: strk
Date: 2016-05-31 00:58:21 -0700 (Tue, 31 May 2016)
New Revision: 14925
Modified:
trunk/topology/postgis_topology.c
Log:
Do not leak a serialized geometry
Modified: trunk/topology/postgis_topology.c
===================================================================
--- trunk/topology/postgis_topology.c 2016-05-31 07:22:50 UTC (rev 14924)
+++ trunk/topology/postgis_topology.c 2016-05-31 07:58:21 UTC (rev 14925)
@@ -2449,6 +2449,7 @@
spi_result = SPI_execute_with_args(sql->data, 1, argtypes, values, NULL,
!topo->be_data->data_changed, 1);
MemoryContextSwitchTo( oldcontext ); /* switch back */
+ pfree(pts); /* not needed anymore */
if ( spi_result != SPI_OK_SELECT ) {
cberror(topo->be_data, "unexpected return (%d) from query execution: %s",
spi_result, sql->data);
More information about the postgis-tickets
mailing list