Fix memory leak in API tests for vlen dataset I/O (#5230)

This commit is contained in:
jhendersonHDF 2025-01-13 18:58:32 -06:00 committed by GitHub
parent c25f8e331d
commit 46658a55b3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -10223,6 +10223,9 @@ test_dataset_vlen_io(void H5_ATTR_UNUSED *params)
}
/* Reset buffers */
if (H5Sselect_all(space_id) < 0)
PART_TEST_ERROR(rw_point_selection);
if (H5Treclaim(vlen_int, space_id, H5P_DEFAULT, rbuf) < 0)
PART_TEST_ERROR(rw_point_selection);
@ -10325,6 +10328,9 @@ test_dataset_vlen_io(void H5_ATTR_UNUSED *params)
}
/* Reset buffers */
if (H5Sselect_all(space_id) < 0)
PART_TEST_ERROR(rw_hyperslab_selection);
if (H5Treclaim(vlen_int, space_id, H5P_DEFAULT, rbuf) < 0)
PART_TEST_ERROR(rw_hyperslab_selection);