From 8f205256f2edcf05773d5d635d20738a6760c78a Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Sat, 31 May 2003 11:18:06 -0500 Subject: [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) --- test/tconfig.c | 2 ++ 1 file changed, 2 insertions(+) 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: " -- cgit v0.12