[geos-devel] possible memory leak in InteriorPointArea

Sandro Santilli strk at keybit.net
Wed Sep 7 10:35:55 EDT 2011


On Tue, Sep 06, 2011 at 10:07:10PM +0200, Peter Körner wrote:
> Hi guys!
> 
> I guess I'm just using the InteriorPointArea wrong, but I get a
> memory-leak reported in valgrind:
> 
> ==2887== 168 (48 direct, 120 indirect) bytes in 1 blocks are
> definitely lost in loss record 26 of 27
> ==2887==    at 0x4C28B42: operator new(unsigned long)
> (vg_replace_malloc.c:261)
> ==2887==    by 0x5BB3622: geos::geom::GeometryFactory::createLineString(geos::geom::CoordinateSequence*)
> const (in /usr/lib/libgeos-3.2.0.so)
...

Build with debugging symbols on (-g option to GCC).

--strk;

  ()   Free GIS & Flash consultant/developer
  /\   http://strk.keybit.net/services.html


More information about the geos-devel mailing list