]> granicus.if.org Git - postgis/commitdiff
Fix possible release of unallocated memory in ST_AddIsoNode
authorSandro Santilli <strk@keybit.net>
Thu, 30 Jul 2015 13:51:56 +0000 (13:51 +0000)
committerSandro Santilli <strk@keybit.net>
Thu, 30 Jul 2015 13:51:56 +0000 (13:51 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@13857 b70326c6-7e19-0410-871a-916f4a2858ee

topology/postgis_topology.c

index f5cbda165a67c0ff95bc9f23143172fa5c84f622..dc731b88d433edee270a72db7597aa3bcd6e5531 100644 (file)
@@ -2424,7 +2424,7 @@ Datum ST_AddIsoNode(PG_FUNCTION_ARGS)
   node_id = lwt_AddIsoNode(topo, containing_face, pt, 0);
   POSTGIS_DEBUG(1, "lwt_AddIsoNode returned");
   lwgeom_free(lwgeom);
-  PG_FREE_IF_COPY(geom, 3);
+  PG_FREE_IF_COPY(geom, 2);
   lwt_FreeTopology(topo);
 
   if ( node_id == -1 ) {