FREE the right argument (fixes bug #670)

git-svn-id: http://svn.osgeo.org/postgis/trunk@6270 b70326c6-7e19-0410-871a-916f4a2858ee
This commit is contained in:
Sandro Santilli 2010-12-03 09:22:35 +00:00
parent ab461267c9
commit 8727889a67

View file

@ -73,10 +73,10 @@ Datum ST_SharedPaths(PG_FUNCTION_ARGS)
{
lwerror("Second argument geometry could not be converted to GEOS: %s", lwgeom_geos_errmsg);
GEOSGeom_destroy(g1);
PG_FREE_IF_COPY(geom2, 0);
PG_FREE_IF_COPY(geom2, 1);
PG_RETURN_NULL();
}
PG_FREE_IF_COPY(geom2, 0);
PG_FREE_IF_COPY(geom2, 1);
g3 = GEOSSharedPaths(g1,g2);
if (g3 == NULL)