[postgis-commits] svn - r2699 - trunk/lwgeom
postgis-commits at postgis.refractions.net
postgis-commits at postgis.refractions.net
Tue Aug 21 16:02:42 PDT 2007
Author: mcayland
Date: 2007-08-21 16:02:41 -0700 (Tue, 21 Aug 2007)
New Revision: 2699
Modified:
trunk/lwgeom/lwgeom_ogc.c
Log:
Fix crash when calling ST_EndPoint caused by a double-free in LWGEOM_endpoint_linestring. This bug has been there for a while - thanks to Eric Francois for the bug report.
Modified: trunk/lwgeom/lwgeom_ogc.c
===================================================================
--- trunk/lwgeom/lwgeom_ogc.c 2007-08-20 17:43:43 UTC (rev 2698)
+++ trunk/lwgeom/lwgeom_ogc.c 2007-08-21 23:02:41 UTC (rev 2699)
@@ -973,9 +973,8 @@
/* Serialize an PG_LWGEOM */
result = pglwgeom_serialize(point);
-
lwgeom_release(point);
- lwgeom_release((LWGEOM *)line);
+
PG_FREE_IF_COPY(geom, 0);
PG_RETURN_POINTER(result);
More information about the postgis-commits
mailing list