Close attribute after shared attr dtype test (#5360)

This commit is contained in:
Matt L
2025-03-12 13:17:02 -05:00
committed by GitHub
parent 5e32f15352
commit 4b609617f6
+3
View File
@@ -11437,6 +11437,8 @@ test_attr_shared_dtype(void H5_ATTR_UNUSED *params)
TEST_ERROR;
if (H5Tclose(attr_dtype) < 0)
TEST_ERROR;
if (H5Aclose(attr_id) < 0)
TEST_ERROR;
if (H5Gclose(group_id) < 0)
TEST_ERROR;
if (H5Gclose(container_group) < 0)
@@ -11452,6 +11454,7 @@ error:
H5E_BEGIN_TRY
{
H5Tclose(attr_dtype);
H5Aclose(attr_id);
H5Dclose(dset_id);
H5Gclose(group_id);
H5Gclose(container_group);