From bf004fcba8d8d21713bf5c20246d71e46880170e Mon Sep 17 00:00:00 2001 From: David Young Date: Thu, 30 Jul 2020 17:00:38 -0500 Subject: Bug fixes: don't double-close a FAPL ID. Always close a file ID. --- test/vfd_swmr.c | 5 ++--- 1 file 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); -- cgit v0.12