]> granicus.if.org Git - postgis/commitdiff
Don't try to free unexistent arguments
authorSandro Santilli <strk@keybit.net>
Fri, 26 Jun 2015 14:20:50 +0000 (14:20 +0000)
committerSandro Santilli <strk@keybit.net>
Fri, 26 Jun 2015 14:20:50 +0000 (14:20 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@13716 b70326c6-7e19-0410-871a-916f4a2858ee

topology/postgis_topology.c

index a82ca969dde2e9b6d6f521b83a7a27e7e80d5711..a0e120d06693396f41f1eebdc954ce98f3cf505a 100644 (file)
@@ -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();
   }