Ticket #3953 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

Memory leak in BAG dataset

Reported by: rprinceley Owned by: warmerdam
Priority: normal Milestone: 1.8.1
Component: GDAL_Raster Version: 1.8.0
Severity: normal Keywords: hdf5 bag
Cc: gaopeng

Description

There appears to be one or more cases of missing H5?close calls in the BAG implementation. This is causing memory leaks.

Also, we had to change nAttrSize in HDF5AttrIterate() from:

nAttrSize = H5Tget_size( hAttrTypeID );

to:

nAttrSize = H5Aget_storage_size( hAttrID );

Attached is a patch that adds these calls. We are still testing these, please review and include if appropriate.

Attachments

hdf5.patch Download (3.2 KB) - added by rprinceley 2 years ago.

Change History

Changed 2 years ago by rprinceley

Changed 2 years ago by warmerdam

  • keywords hdf5 bag added
  • resolution set to fixed
  • status changed from new to closed
  • component changed from default to GDAL_Raster
  • milestone set to 1.8.1

I have reviewed and tested the patch and it seems good. Applied in trunk (r21650) and 1.8 branch (r21651).

Thanks!

Note: See TracTickets for help on using tickets.