From: Sandro Santilli Date: Fri, 26 Jun 2015 14:20:50 +0000 (+0000) Subject: Don't try to free unexistent arguments X-Git-Tag: 2.2.0rc1~320 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4de35526dbc3c4d9228d67175db34405151dc618;p=postgis Don't try to free unexistent arguments git-svn-id: http://svn.osgeo.org/postgis/trunk@13716 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/topology/postgis_topology.c b/topology/postgis_topology.c index a82ca969d..a0e120d06 100644 --- a/topology/postgis_topology.c +++ b/topology/postgis_topology.c @@ -918,7 +918,7 @@ Datum ST_ModEdgeSplit(PG_FUNCTION_ARGS) pt = lwgeom_as_lwpoint(lwgeom); if ( ! pt ) { lwgeom_free(lwgeom); - PG_FREE_IF_COPY(geom, 3); + PG_FREE_IF_COPY(geom, 2); lwpgerror("ST_ModEdgeSplit third argument must be a point geometry"); PG_RETURN_NULL(); }