From: Sandro Santilli Date: Wed, 26 Aug 2015 12:01:42 +0000 (+0000) Subject: Revert "Plug nodes leak in _lwt_AddEdge" X-Git-Tag: 2.2.0rc1~90 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d87cf28dd6c387869bcf9d92e66a9a496fd8c166;p=postgis Revert "Plug nodes leak in _lwt_AddEdge" This reverts r14001, as it introduced instabilities git-svn-id: http://svn.osgeo.org/postgis/trunk@14002 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/liblwgeom/lwgeom_topo.c b/liblwgeom/lwgeom_topo.c index 1fc81fba0..86b1e7be8 100644 --- a/liblwgeom/lwgeom_topo.c +++ b/liblwgeom/lwgeom_topo.c @@ -2271,7 +2271,6 @@ _lwt_AddEdge( LWT_TOPOLOGY* topo, } else if ( newedge.face_left != node->containing_face ) { - _lwt_release_nodes(endpoints, num_nodes); lwerror("SQL/MM Spatial exception - geometry crosses an edge" " (endnodes in faces %" LWTFMT_ELEMID " and %" LWTFMT_ELEMID ")", newedge.face_left, node->containing_face); @@ -2287,7 +2286,6 @@ _lwt_AddEdge( LWT_TOPOLOGY* topo, end_node_geom = node->geom; } } - if ( num_nodes ) _lwt_release_nodes(endpoints, num_nodes); if ( ! skipChecks ) {