diff options
author | Vailin Choi <vchoi@hdfgroup.org> | 2013-11-22 17:27:08 (GMT) |
---|---|---|
committer | Vailin Choi <vchoi@hdfgroup.org> | 2013-11-22 17:27:08 (GMT) |
commit | 8f3a6ae8b7bf2554478b668a102f37a9f1363e3e (patch) | |
tree | 8ca4b4d22964f978670e8668e240f99aa43f3f47 /hl/test/test_dset_opt.c | |
parent | 10d221961cd178734d674cb7d20465374ac37afd (diff) | |
download | hdf5-8f3a6ae8b7bf2554478b668a102f37a9f1363e3e.zip hdf5-8f3a6ae8b7bf2554478b668a102f37a9f1363e3e.tar.gz hdf5-8f3a6ae8b7bf2554478b668a102f37a9f1363e3e.tar.bz2 |
[svn-r24462] Bring revision #24457 from revise_chunks.
Diffstat (limited to 'hl/test/test_dset_opt.c')
-rw-r--r-- | hl/test/test_dset_opt.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/hl/test/test_dset_opt.c b/hl/test/test_dset_opt.c index 9a0ffb0..08d1c46 100644 --- a/hl/test/test_dset_opt.c +++ b/hl/test/test_dset_opt.c @@ -176,7 +176,7 @@ test_direct_chunk_write (hid_t file) direct_buf[i][j] = n++; /* Allocate output (compressed) buffer */ - outbuf = malloc(z_dst_nbytes); + outbuf = HDmalloc(z_dst_nbytes); z_dst = (Bytef *)outbuf; /* Perform compression from the source to the destination buffer */ @@ -206,7 +206,7 @@ test_direct_chunk_write (hid_t file) } if(outbuf) - free(outbuf); + HDfree(outbuf); if(H5Fflush(dataset, H5F_SCOPE_LOCAL) < 0) goto error; @@ -249,7 +249,7 @@ test_direct_chunk_write (hid_t file) direct_buf[i][j] = i + j; /* Allocate output (compressed) buffer */ - outbuf = malloc(z_dst_nbytes); + outbuf = HDmalloc(z_dst_nbytes); z_dst = (Bytef *)outbuf; /* Perform compression from the source to the destination buffer */ @@ -280,7 +280,7 @@ test_direct_chunk_write (hid_t file) } if(outbuf) - free(outbuf); + HDfree(outbuf); if(H5Fflush(dataset, H5F_SCOPE_LOCAL) < 0) goto error; @@ -329,7 +329,7 @@ error: } H5E_END_TRY; if(outbuf) - free(outbuf); + HDfree(outbuf); return 1; } |