Opened 20 years ago
Last modified 20 years ago
#613 closed defect (fixed)
memory leaks from using importFromESRI
Reported by: | Owned by: | warmerdam | |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | default | Version: | unspecified |
Severity: | normal | Keywords: | |
Cc: |
Description
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(). Frank says: 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. It's not that this one-time leak is important by itself, but by introducing a batch of leaks, it makes it harder for me to the _other_ leaks in my GDAL-using app.
Note:
See TracTickets
for help on using tickets.