Good day everyone :)

I am a new OGR user,  using S57 driver to read ENC chart data. It
appears that I am having a serious issue with memory not being freed as
expected. I.e. - I create and initialize an S57Reader (pretty much
following the example from the source tree), read features, do a bit of
work (work includes using Clone() method to clone some of the features),
and then delete all features (using the provided Destroy method for
safety sake). At this point, it appears that there are still multiple
objects on the heap that were allocated by OGR at some point. They seem
to be in direct proportion to the number of features used. I am using
MacOS and malloc_history shows a number of different items as being
still allocated, this is also supported by memory size (both RSIZE and
VSIZE) going up as features are allocated and never decreasing much.

Is there anything I am overlooking in the way I use the driver or the
feature data? The issue seems to be too obvious to be an actual problem
with the library.

Any help would be appreciated!
--Gene
_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to