summaryrefslogtreecommitdiffstats
path: root/src/H5F.c
diff options
context:
space:
mode:
authorjhendersonHDF <jhenderson@hdfgroup.org>2023-09-01 04:30:15 (GMT)
committerGitHub <noreply@github.com>2023-09-01 04:30:15 (GMT)
commitc33164e2b30ecb98aeef3f7b2e92f11c27faa203 (patch)
treedfba5eb0d24477f3c0a918a555b8fb67ef4bd1e3 /src/H5F.c
parent14fd7b2bf9c1cf52aff3b99c70822c463e451154 (diff)
downloadhdf5-c33164e2b30ecb98aeef3f7b2e92f11c27faa203.zip
hdf5-c33164e2b30ecb98aeef3f7b2e92f11c27faa203.tar.gz
hdf5-c33164e2b30ecb98aeef3f7b2e92f11c27faa203.tar.bz2
[1.10 Merge] Fix assertion failure during file close on error (#3460)
Diffstat (limited to 'src/H5F.c')
-rw-r--r--src/H5F.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5F.c b/src/H5F.c
index 9d19efb..5fa62e3 100644
--- a/src/H5F.c
+++ b/src/H5F.c
@@ -616,7 +616,7 @@ H5Freopen(hid_t file_id)
done:
if (ret_value < 0 && new_file)
- if (H5F__dest(new_file, FALSE) < 0)
+ if (H5F__dest(new_file, FALSE, TRUE) < 0)
HDONE_ERROR(H5E_FILE, H5E_CANTCLOSEFILE, H5I_INVALID_HID, "can't close file")
FUNC_LEAVE_API(ret_value)