[geos-devel] using CoordinateOperation::edit cause memory leaks
strk at keybit.net
Wed May 22 12:44:01 PDT 2013
On Wed, May 22, 2013 at 09:23:04PM +0200, Tereza Fiedlerová wrote:
> > I get NO leaks reported by Valgrind with this code:
> > http://strk.keybit.net/tmp/main.cpp
> > --strk;
> I cannot open your link (403 Forbidden), but with my code posted
> before just with line delete geosGeom in the end of main.cpp, I still
> get that one leak. Could it be caused by my GEOS version? I'm using
> Geos 3.3.3?
Please try again.
You're assigning to geosGeom the return from the function, making
the previous value of geosGeom unreachable, thus leaking.
More information about the geos-devel