]> granicus.if.org Git - postgis/commitdiff
commented pfree call in GEOSnoop (seems to generate memory faults)
authorSandro Santilli <strk@keybit.net>
Mon, 20 Sep 2004 21:13:01 +0000 (21:13 +0000)
committerSandro Santilli <strk@keybit.net>
Mon, 20 Sep 2004 21:13:01 +0000 (21:13 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@859 b70326c6-7e19-0410-871a-916f4a2858ee

lwgeom/lwgeom_geos.c

index 38f5d3d9839fe4edb054a9a1d160a1971bdad046..c2b7d4d2bbc123cfe8e4d3ada94cfc280ed4836c 100644 (file)
@@ -1568,7 +1568,7 @@ Datum GEOSnoop(PG_FUNCTION_ARGS)
 #endif
 
        geosgeom = POSTGIS2GEOS(geom);
-       if ( (Pointer *)geom != (Pointer *)PG_GETARG_DATUM(0) ) pfree(geom);
+       //if ( (Pointer *)geom != (Pointer *)PG_GETARG_DATUM(0) ) pfree(geom);
        if ( ! geosgeom ) PG_RETURN_NULL();
 
        result = GEOS2POSTGIS(geosgeom, lwgeom_ndims(geom->type) > 2);