Skip to content

Commit

Permalink
Fix memory leak in API tests for vlen dataset I/O
Browse files Browse the repository at this point in the history
  • Loading branch information
jhendersonHDF committed Jan 13, 2025
1 parent 04f17f5 commit 3e7b182
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/API/H5_api_dataset_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit 3e7b182

Please sign in to comment.