summaryrefslogtreecommitdiffstats
path: root/src/H5Otest.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5Otest.c')
-rw-r--r--src/H5Otest.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/H5Otest.c b/src/H5Otest.c
index 883bfcd..2646dda 100644
--- a/src/H5Otest.c
+++ b/src/H5Otest.c
@@ -399,6 +399,9 @@ H5O_attr_dense_info_test(hid_t oid, hsize_t *name_count, hsize_t *corder_count)
else
*corder_count = 0;
+ /* Reset metadata tag in dxpl_id */
+ H5_END_TAG(FAIL);
+
done:
/* Release resources */
if(bt2_name && H5B2_close(bt2_name, H5AC_ind_dxpl_id) < 0)
@@ -408,9 +411,6 @@ done:
if(oh && H5O_unprotect(loc, H5AC_ind_dxpl_id, oh, H5AC__NO_FLAGS_SET) < 0)
HDONE_ERROR(H5E_OHDR, H5E_CANTUNPROTECT, FAIL, "unable to release object header")
- /* Reset metadata tag in dxpl_id */
- H5_END_TAG(FAIL);
-
FUNC_LEAVE_NOAPI(ret_value)
} /* H5O_attr_dense_info_test() */