diff options
author | Dana Robinson <43805+derobins@users.noreply.github.com> | 2022-05-06 22:37:40 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-06 22:37:40 (GMT) |
commit | a02cbdac311a78b7804178b501f0bed3dbb2c374 (patch) | |
tree | d10a4d780dd29cf17a43bb09264bcde63e2f6576 /test/mirror_vfd.c | |
parent | 4f376eb29f2b7e560b62cf05843fe6103a50fa71 (diff) | |
download | hdf5-a02cbdac311a78b7804178b501f0bed3dbb2c374.zip hdf5-a02cbdac311a78b7804178b501f0bed3dbb2c374.tar.gz hdf5-a02cbdac311a78b7804178b501f0bed3dbb2c374.tar.bz2 |
Onion VFD: sync with develop (#1747)
Sync with develop
Diffstat (limited to 'test/mirror_vfd.c')
-rw-r--r-- | test/mirror_vfd.c | 16 |
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; |