summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorPeter Cao <xcao@hdfgroup.org>2007-04-30 22:44:04 (GMT)
committerPeter Cao <xcao@hdfgroup.org>2007-04-30 22:44:04 (GMT)
commit37e010fbe073ce4847da28bdc8da572fa8fa1599 (patch)
tree58e0d62636abb003c7abeba64d0d6d2cf84245f3 /test
parent90a16bb0ddb731ab3eaf6aa7b2140ebf269a6ae1 (diff)
downloadhdf5-37e010fbe073ce4847da28bdc8da572fa8fa1599.zip
hdf5-37e010fbe073ce4847da28bdc8da572fa8fa1599.tar.gz
hdf5-37e010fbe073ce4847da28bdc8da572fa8fa1599.tar.bz2
[svn-r13714] Fix memory leak on objcopy.c test
H5Premove(dcpl, H5D_CRT_EXT_FILE_LIST_NAME) causes memory leak. Use new function H5P_reset_external_file_test(dcpl) instead.
Diffstat (limited to 'test')
-rwxr-xr-xtest/objcopy.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/objcopy.c b/test/objcopy.c
index 8cc1027..c773440 100755
--- a/test/objcopy.c
+++ b/test/objcopy.c
@@ -1078,8 +1078,14 @@ compare_datasets(hid_t did, hid_t did2, hid_t pid, const void *wbuf)
}
/* Remove external file information from the dcpls */
+ /* Remove default property causes memory leak
if(H5Premove(dcpl, H5D_CRT_EXT_FILE_LIST_NAME) < 0) TEST_ERROR
if(H5Premove(dcpl2, H5D_CRT_EXT_FILE_LIST_NAME) < 0) TEST_ERROR
+ */
+
+ /* reset external file information from the dcpls */
+ if (H5P_reset_external_file_test(dcpl) < 0) TEST_ERROR
+ if (H5P_reset_external_file_test(dcpl2) < 0) TEST_ERROR
}
/* Compare the rest of the dataset creation property lists */