diff options
author | jhendersonHDF <jhenderson@hdfgroup.org> | 2024-03-18 01:48:16 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-18 01:48:16 (GMT) |
commit | 840476ead85229ac4d7be1b6c9dd87ad5f8e3a07 (patch) | |
tree | 1ed470da7841f2de768dc76abcaf59d3511f018d /src/H5FDsubfiling/H5FDsubfiling.c | |
parent | fa44de4cdbc125f644369834983c65811be12335 (diff) | |
download | hdf5-develop.zip hdf5-develop.tar.gz hdf5-develop.tar.bz2 |
Fix an issue where the Subfiling VFD's context cache grows too large (#4159)develop
Diffstat (limited to 'src/H5FDsubfiling/H5FDsubfiling.c')
-rw-r--r-- | src/H5FDsubfiling/H5FDsubfiling.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/H5FDsubfiling/H5FDsubfiling.c b/src/H5FDsubfiling/H5FDsubfiling.c index 4c39f0f..9594f67 100644 --- a/src/H5FDsubfiling/H5FDsubfiling.c +++ b/src/H5FDsubfiling/H5FDsubfiling.c @@ -1358,6 +1358,9 @@ done: H5MM_free(file_ptr->file_dir); file_ptr->file_dir = NULL; + if (file_ptr->context_id >= 0 && H5_free_subfiling_object(file_ptr->context_id) < 0) + H5_SUBFILING_DONE_ERROR(H5E_FILE, H5E_CANTFREE, FAIL, "can't free subfiling context object"); + /* Release the file info */ file_ptr = H5FL_FREE(H5FD_subfiling_t, file_ptr); |