]> granicus.if.org Git - postgis/commitdiff
Fix crash when calling ST_EndPoint caused by a double-free in LWGEOM_endpoint_linestr...
authorMark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>
Tue, 21 Aug 2007 23:02:41 +0000 (23:02 +0000)
committerMark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>
Tue, 21 Aug 2007 23:02:41 +0000 (23:02 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@2699 b70326c6-7e19-0410-871a-916f4a2858ee

lwgeom/lwgeom_ogc.c

index 328a17a9036fc234b3a3a4276009fa199304ce48..87873d33eeaf22bdedc450151b867468b8e82583 100644 (file)
@@ -973,9 +973,8 @@ Datum LWGEOM_endpoint_linestring(PG_FUNCTION_ARGS)
 
        /* 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);