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 /test/ttsafe_cancel.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 'test/ttsafe_cancel.c')
-rw-r--r-- | test/ttsafe_cancel.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ttsafe_cancel.c b/test/ttsafe_cancel.c index 8264403..56f431e 100644 --- a/test/ttsafe_cancel.c +++ b/test/ttsafe_cancel.c @@ -145,7 +145,7 @@ void *tts_cancel_thread(void UNUSED *arg) assert(dataset >= 0); /* If thread is cancelled, make cleanup call */ - cleanup_structure = (cancel_cleanup_t*)malloc(sizeof(cancel_cleanup_t)); + cleanup_structure = (cancel_cleanup_t*)HDmalloc(sizeof(cancel_cleanup_t)); cleanup_structure->dataset = dataset; cleanup_structure->datatype = datatype; cleanup_structure->dataspace = dataspace; @@ -156,7 +156,7 @@ void *tts_cancel_thread(void UNUSED *arg) ret=H5Dwrite(dataset, H5T_NATIVE_INT, H5S_ALL, H5S_ALL, H5P_DEFAULT, &datavalue); assert(ret>=0); - buffer = malloc(sizeof(int)); + buffer = HDmalloc(sizeof(int)); ret=H5Dread(dataset, H5T_NATIVE_INT, H5S_ALL, H5S_ALL, H5P_DEFAULT, buffer); assert(ret>=0); ret=H5Diterate(buffer, H5T_NATIVE_INT, dataspace, tts_cancel_callback, &dataset); |