mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-01-18 15:15:56 +08:00
Fix memory leak in API tests for vlen dataset I/O (#5230)
This commit is contained in:
parent
c25f8e331d
commit
46658a55b3
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user