]> granicus.if.org Git - postgis/commitdiff
Plug leak in get{Node,Edge,Face}WithinBox2D topology callbacks
authorSandro Santilli <strk@keybit.net>
Mon, 14 Sep 2015 14:35:08 +0000 (14:35 +0000)
committerSandro Santilli <strk@keybit.net>
Mon, 14 Sep 2015 14:35:08 +0000 (14:35 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@14064 b70326c6-7e19-0410-871a-916f4a2858ee

topology/postgis_topology.c

index 3d4335e220063f0ccfd5b8b9a9fb4f7608d47077..f4570c3d2263dbf0ce0bee8bf9e671172f0d697b 100644 (file)
@@ -130,6 +130,7 @@ _box2d_to_hexwkb(const GBOX *bbox, int srid)
   ptarray_set_point4d(pa, 1, &p);
   line = lwline_construct(srid, NULL, pa);
   hex = lwgeom_to_hexwkb( lwline_as_lwgeom(line), WKT_EXTENDED, &sz);
+  lwline_free(line);
   assert(hex[sz-1] == '\0');
   return hex;
 }