[Gdal-dev] Memory leak? How to release GDAL datasets?

Frank Warmerdam warmerdam at pobox.com
Fri Dec 15 01:49:44 EST 2006


On 12/13/06, Craig Miller <craig.miller at spatialminds.com> wrote:
> Is GDALClose(m_pDataset) the only method that needs to be called after
> opening a GDAL datset?

Craig,

That should be sufficient.

I really can't think why there would be any polygon geometry
creation going on to open a geotiff file.  I wonder if you might be
getting some sort of false report from your memory tester.

If you can point me to a file that demonstrates the problem,
I could try testing it under valgrind using something like
gdalinfo.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent



More information about the Gdal-dev mailing list