close small memory leak in CarpetIOHDF5

Create issue
Issue #1027 closed
Roland Haas created an issue

this patches closes a memory leak in CarpetIOHDF5 when using open_one_input_file_at_a_time, where the HDF5 file would be closed, but the data read out out it was not freed which would cause storage for it to be reallocated again when the file is opened again for the next refinement level. It also properly closes a HDF5 property that was left dangling otherwise.

Keyword: CarpetIOHDF5

Comments (5)

  1. Erik Schnetter
    • removed comment

    Wasn't there an alternative version of this patch that doesn't clear the list of patches, but instead doesn't reconstruct the list when the file is opened again?

  2. Log in to comment