diff options
author | jhendersonHDF <jhenderson@hdfgroup.org> | 2023-09-01 04:02:56 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-01 04:02:56 (GMT) |
commit | b02dc7d9c0f83409bf55b4ca97061b5a8cd50b36 (patch) | |
tree | b5c0efad9c7b038f57a223906a190c0dbc444ceb /src/H5Cimage.c | |
parent | cd1a6aabdb8a39721507b58fe2792497428e7828 (diff) | |
download | hdf5-b02dc7d9c0f83409bf55b4ca97061b5a8cd50b36.zip hdf5-b02dc7d9c0f83409bf55b4ca97061b5a8cd50b36.tar.gz hdf5-b02dc7d9c0f83409bf55b4ca97061b5a8cd50b36.tar.bz2 |
[1.14 Merge] Fix assertion failure during file close on error (#3463)
Diffstat (limited to 'src/H5Cimage.c')
-rw-r--r-- | src/H5Cimage.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/H5Cimage.c b/src/H5Cimage.c index 87df542..c578deb 100644 --- a/src/H5Cimage.c +++ b/src/H5Cimage.c @@ -654,6 +654,11 @@ H5C__load_cache_image(H5F_t *f) } /* end if */ done: + if (ret_value < 0) { + if (H5_addr_defined(cache_ptr->image_addr)) + cache_ptr->image_buffer = H5MM_xfree(cache_ptr->image_buffer); + } + FUNC_LEAVE_NOAPI(ret_value) } /* H5C__load_cache_image() */ |