summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2003-05-31 16:18:06 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2003-05-31 16:18:06 (GMT)
commit8f205256f2edcf05773d5d635d20738a6760c78a (patch)
tree1b12e8226eb8c89dae23ffc9eb576983cf88e3a6
parent3ad545c7ae76e6ea477268ea40935693054df8ad (diff)
downloadhdf5-8f205256f2edcf05773d5d635d20738a6760c78a.zip
hdf5-8f205256f2edcf05773d5d635d20738a6760c78a.tar.gz
hdf5-8f205256f2edcf05773d5d635d20738a6760c78a.tar.bz2
[svn-r6939] Purpose:
Code cleanup Description: Free malloc'ed buffer of 0 bytes when H5_MALLOC_WORKS is defined, to make purify happier. Platforms tested: h5committestted (although Fortran tests failed for some reason)
-rw-r--r--test/tconfig.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/tconfig.c b/test/tconfig.c
index 902cad5..73197653 100644
--- a/test/tconfig.c
+++ b/test/tconfig.c
@@ -214,6 +214,8 @@ test_config_malloc(void)
"expected non-NULL, got NULL\n");
num_errs++;
}
+
+ free(pt);
#else
if (pt!=NULL){
print_func("Error verifying H5_MALLOC_WORKS: "