diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2020-01-16 00:43:53 (GMT) |
---|---|---|
committer | David Young <dyoung@hdfgroup.org> | 2020-05-20 14:31:50 (GMT) |
commit | 55b41104b920ca907053fcf39be43601f734c337 (patch) | |
tree | 5fb4b006dce50a92aa8af6a6650715e18bd6c881 /test | |
parent | 0585e6fb342014ac83598137f9bf0e946c701cd5 (diff) | |
download | hdf5-55b41104b920ca907053fcf39be43601f734c337.zip hdf5-55b41104b920ca907053fcf39be43601f734c337.tar.gz hdf5-55b41104b920ca907053fcf39be43601f734c337.tar.bz2 |
Tidying from code review.
Diffstat (limited to 'test')
-rw-r--r-- | test/dsets.c | 26 |
1 files changed, 20 insertions, 6 deletions
diff --git a/test/dsets.c b/test/dsets.c index fc68fc4..7684de4 100644 --- a/test/dsets.c +++ b/test/dsets.c @@ -9610,9 +9610,6 @@ test_fixed_array(hid_t fapl) const hsize_t chunk_dim2[2] = {4, 3}; /* Chunk dimensions */ -// int chunks[12][6]; /* # of chunks for dataset dimensions */ -// int chunks_big[125][20]; /* # of chunks for big dataset dimensions */ - int **chunks = NULL; /* # of chunks for dataset dimensions */ int **chunks_big = NULL; /* # of chunks for big dataset dimensions */ int *chunks_bytes = NULL; @@ -9621,9 +9618,6 @@ test_fixed_array(hid_t fapl) int chunk_row; /* chunk row index */ int chunk_col; /* chunk column index */ -// hsize_t coord[POINTS][2]; /* datdaset coordinates */ -// hsize_t coord_big[POINTS_BIG][2]; /* big dataset coordinates */ - hsize_t **coord = NULL; /* datdaset coordinates */ hsize_t **coord_big = NULL; /* big datdaset coordinates */ hsize_t *coord_bytes = NULL; @@ -13749,9 +13743,29 @@ main(void) #endif /* H5_HAVE_FILTER_SZIP */ h5_cleanup(FILENAME, fapl); + HDfree(points); + HDfree(check); + HDfree(points_dbl); + HDfree(check_dbl); + + HDfree(points_data); + HDfree(check_data); + HDfree(points_dbl_data); + HDfree(check_dbl_data); + HDexit(EXIT_SUCCESS); error: + HDfree(points); + HDfree(check); + HDfree(points_dbl); + HDfree(check_dbl); + + HDfree(points_data); + HDfree(check_data); + HDfree(points_dbl_data); + HDfree(check_dbl_data); + nerrors = MAX(1, nerrors); HDprintf("***** %d DATASET TEST%s FAILED! *****\n", nerrors, 1 == nerrors ? "" : "S"); |