Skip to content

Commit

Permalink
Drop H5E_BEGIN/END_TRY and just check the error return from H5I_clear…
Browse files Browse the repository at this point in the history
…_types() (#4694)

Original case that the change in commit 2dc738a
no longer applies.
  • Loading branch information
qkoziol authored Aug 6, 2024
1 parent eede36f commit 3967f2a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/H5Iint.c
Original file line number Diff line number Diff line change
Expand Up @@ -439,11 +439,8 @@ H5I__destroy_type(H5I_type_t type)
HGOTO_ERROR(H5E_ID, H5E_BADGROUP, FAIL, "invalid type");

/* Close/clear/destroy all IDs for this type */
H5E_BEGIN_TRY
{
H5I_clear_type(type, true, false);
}
H5E_END_TRY /* don't care about errors */
if (H5I_clear_type(type, true, false) < 0)
HGOTO_ERROR(H5E_ID, H5E_CANTRELEASE, FAIL, "unable to release IDs for type");

/* Check if we should release the ID class */
if (type_info->cls->flags & H5I_CLASS_IS_APPLICATION)
Expand Down

0 comments on commit 3967f2a

Please sign in to comment.