diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2020-01-16 00:43:53 (GMT) |
---|---|---|
committer | Dana Robinson <derobins@hdfgroup.org> | 2020-01-16 00:43:53 (GMT) |
commit | 46c3bc6b98bc467d46ca22cfc1b912c741a9d886 (patch) | |
tree | f6eadd2df3e0b5fdc4023713057d36d1796a7022 /test | |
parent | 1f8f6f019c85df6c031a32f6bf703fa18e225973 (diff) | |
download | hdf5-46c3bc6b98bc467d46ca22cfc1b912c741a9d886.zip hdf5-46c3bc6b98bc467d46ca22cfc1b912c741a9d886.tar.gz hdf5-46c3bc6b98bc467d46ca22cfc1b912c741a9d886.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 237a050..2ebb6c8 100644 --- a/test/dsets.c +++ b/test/dsets.c @@ -9606,9 +9606,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; @@ -9617,9 +9614,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; @@ -13745,9 +13739,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"); |