[Gdal-dev] memory leaks (?) from using importFromESRI
Frank Warmerdam
warmerdam at pobox.com
Fri Sep 17 01:48:12 EDT 2004
Ben Discoe wrote:
> When i call: OGRSpatialReference::importFromESRI()
> it calls: InitDatumMappingTable()
>
> which allocates a bunch of stuff, including a big array like this:
> papszDatumMapping = (char
> **)CPLCalloc(sizeof(char*),nMaxDatumMappings*3);
>
> This memory never seems to get freed. I looked for, but didn't find, a
> function like FreeDatumMappingTable().
>
> Is there any way to avoid this leak?
Ben,
There does not seem to be a way around this. If you file a bug on it, I will
try to rectify this by the 1.2.3 release.
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