mirror of
https://git.osgeo.org/gitea/postgis/postgis
synced 2024-10-25 17:42:38 +00:00
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:
parent
ab461267c9
commit
8727889a67
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue