]> granicus.if.org Git - postgis/commitdiff
Plug gbox leak in _lwt_AddFaceSplit
authorSandro Santilli <strk@keybit.net>
Tue, 15 Sep 2015 20:32:58 +0000 (20:32 +0000)
committerSandro Santilli <strk@keybit.net>
Tue, 15 Sep 2015 20:32:58 +0000 (20:32 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@14073 b70326c6-7e19-0410-871a-916f4a2858ee

liblwgeom/lwgeom_topo.c

index bb629bdcfa7481e763718dd5280d48f79eff2154..4ca7b8df8104ada5f74f1fd2b5fb3d89dea03f32 100644 (file)
@@ -1958,7 +1958,8 @@ _lwt_AddFaceSplit( LWT_TOPOLOGY* topo,
     return -2;
   }
   if ( oldface ) {
-    lwfree(oldface); /* NOTE: oldface.mbr is owned by shell */
+    newface.mbr = NULL; /* it is a reference to oldface mbr... */
+    _lwt_release_faces(oldface, 1);
   }
 
   /* Update side location of new face edges */