diff options
author | jhendersonHDF <jhenderson@hdfgroup.org> | 2024-02-26 16:52:33 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-26 16:52:33 (GMT) |
commit | 221e4295788d3e5d2a8afe147c8127e8cf40732f (patch) | |
tree | 778206bdf7aa6464f487d859647bcc104c04a298 /release_docs/RELEASE.txt | |
parent | 560e80c0ad8494a2e070aafde9cbcff11de99219 (diff) | |
download | hdf5-221e4295788d3e5d2a8afe147c8127e8cf40732f.zip hdf5-221e4295788d3e5d2a8afe147c8127e8cf40732f.tar.gz hdf5-221e4295788d3e5d2a8afe147c8127e8cf40732f.tar.bz2 |
Fix memory leak in H5LTopen_file_image when H5LT_FILE_IMAGE_DONT_COPY flag is used (#4021)
When the H5LT_FILE_IMAGE_DONT_COPY flag is passed to H5LTopen_file_image, the internally-allocated
udata structure gets leaked as the core file driver doesn't have a way to determine when or if it
needs to call the 'udata_free' callback. This has been fixed by freeing the udata structure when
the 'image_free' callback gets made during file close, where the file is holding the last reference
to the udata structure.
Diffstat (limited to 'release_docs/RELEASE.txt')
-rw-r--r-- | release_docs/RELEASE.txt | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/release_docs/RELEASE.txt b/release_docs/RELEASE.txt index 4d1aabb..5c075d4 100644 --- a/release_docs/RELEASE.txt +++ b/release_docs/RELEASE.txt @@ -1145,7 +1145,16 @@ Bug Fixes since HDF5-1.14.0 release High-Level Library ------------------ - - + - Fixed a memory leak in H5LTopen_file_image with H5LT_FILE_IMAGE_DONT_COPY flag + + When the H5LT_FILE_IMAGE_DONT_COPY flag is passed to H5LTopen_file_image, the + internally-allocated udata structure gets leaked as the core file driver doesn't + have a way to determine when or if it needs to call the "udata_free" callback. + This has been fixed by freeing the udata structure when the "image_free" callback + gets made during file close, where the file is holding the last reference to the + udata structure. + + Fixes GitHub issue #827 Fortran High-Level APIs |