summaryrefslogtreecommitdiffstats
path: root/test/mirror_vfd.c
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2022-05-06 18:06:52 (GMT)
committerGitHub <noreply@github.com>2022-05-06 18:06:52 (GMT)
commit1b413fe61aa11de314f0b4f85461a88691c15069 (patch)
tree59aab400f8787fde243a96570f7bee5960c5ce92 /test/mirror_vfd.c
parent13985a7f529a3628fe215478f9d77f0d5b9b0fd1 (diff)
downloadhdf5-1b413fe61aa11de314f0b4f85461a88691c15069.zip
hdf5-1b413fe61aa11de314f0b4f85461a88691c15069.tar.gz
hdf5-1b413fe61aa11de314f0b4f85461a88691c15069.tar.bz2
Minor things noticed while merging to 1.10 (#1739)
* Minor things noticed while merging to 1.10 * Set HDF5_DRIVER back in string
Diffstat (limited to 'test/mirror_vfd.c')
-rw-r--r--test/mirror_vfd.c16
1 files changed, 4 insertions, 12 deletions
diff --git a/test/mirror_vfd.c b/test/mirror_vfd.c
index c89a368..34a4481 100644
--- a/test/mirror_vfd.c
+++ b/test/mirror_vfd.c
@@ -2405,18 +2405,10 @@ test_vanishing_datasets(const struct mt_opts *opts)
error:
H5E_BEGIN_TRY
{
- if (fapl_id != H5I_INVALID_HID) {
- H5Pclose(fapl_id);
- }
- if (file_id != H5I_INVALID_HID) {
- H5Fclose(file_id);
- }
- if (dset_id != H5I_INVALID_HID) {
- H5Dclose(dset_id);
- }
- if (dspace_id != H5I_INVALID_HID) {
- H5Sclose(dspace_id);
- }
+ H5Pclose(fapl_id);
+ H5Fclose(file_id);
+ H5Dclose(dset_id);
+ H5Sclose(dspace_id);
}
H5E_END_TRY;
return -1;