summaryrefslogtreecommitdiffstats
path: root/test/vfd_swmr.c
diff options
context:
space:
mode:
authorDavid Young <dyoung@hdfgroup.org>2020-07-30 22:00:38 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2020-07-30 22:00:38 (GMT)
commitbf004fcba8d8d21713bf5c20246d71e46880170e (patch)
treee5c46fa8c395d0733cab5cd81bc38b3cb901ae06 /test/vfd_swmr.c
parent92887cad1c2feb7da903248a79d19be808d516ef (diff)
downloadhdf5-bf004fcba8d8d21713bf5c20246d71e46880170e.zip
hdf5-bf004fcba8d8d21713bf5c20246d71e46880170e.tar.gz
hdf5-bf004fcba8d8d21713bf5c20246d71e46880170e.tar.bz2
Bug fixes: don't double-close a FAPL ID. Always close a file ID.
Diffstat (limited to 'test/vfd_swmr.c')
-rw-r--r--test/vfd_swmr.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/vfd_swmr.c b/test/vfd_swmr.c
index f2be609..34657f3 100644
--- a/test/vfd_swmr.c
+++ b/test/vfd_swmr.c
@@ -472,10 +472,8 @@ test_file_fapl(void)
if(H5Fclose(fid2) < 0)
FAIL_STACK_ERROR;
if(H5Fclose(fid) < 0)
-
- /* Closing */
- if(H5Pclose(fapl1) < 0)
FAIL_STACK_ERROR;
+
if(H5Pclose(fapl2) < 0)
FAIL_STACK_ERROR;
if(H5Pclose(file_fapl) < 0)
@@ -501,6 +499,7 @@ error:
H5Pclose(file_fapl);
H5Pclose(fcpl);
H5Fclose(fid);
+ H5Fclose(fid2);
} H5E_END_TRY;
if(config1)
HDfree(config1);