]> granicus.if.org Git - postgis/commitdiff
Fix memory leak in lwt_ChangeEdgeGeom [liblwgeom]
authorSandro Santilli <strk@keybit.net>
Mon, 12 Oct 2015 20:29:47 +0000 (20:29 +0000)
committerSandro Santilli <strk@keybit.net>
Mon, 12 Oct 2015 20:29:47 +0000 (20:29 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@14268 b70326c6-7e19-0410-871a-916f4a2858ee

liblwgeom/lwgeom_topo.c

index 7be02d45b617a2ea3d74876652369ceedfb06c8e..ea8f24b8528b35f5346355b45c409add173fcd84 100644 (file)
@@ -3578,6 +3578,8 @@ lwt_ChangeEdgeGeom(LWT_TOPOLOGY* topo, LWT_ELEMID edge_id, LWLINE *geom)
       return -1;
     }
   }
+  if ( nface1 ) lwgeom_free(nface1);
+  if ( nface2 ) lwgeom_free(nface2);
 
   LWDEBUG(1, "all done, cleaning up edges");