From 2443c16bf0e93465b0bbebde5920b199fca5630c Mon Sep 17 00:00:00 2001 From: Patrick Lu Date: Thu, 29 Apr 1999 12:41:42 -0500 Subject: [svn-r1236] i had to change some of the h5mm_xfree calls to just hdfree for the dll version it was causing some crashes otherwise --- test/hyperslab.c | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/test/hyperslab.c b/test/hyperslab.c index 9a59363..85d4f3f 100644 --- a/test/hyperslab.c +++ b/test/hyperslab.c @@ -564,8 +564,13 @@ test_copy(int mode, } } puts(" PASSED"); - H5MM_xfree(src); - H5MM_xfree(dst); +#ifdef WIN32 && _HDF5USEDLL_ + HDfree(src); + HDfree(dst); +#else + H5MM_xfree(src); + H5MM_xfree(dst); +#endif return SUCCEED; error: @@ -613,7 +618,7 @@ test_multifill(size_t nx) fflush(stdout); /* Initialize the source and destination */ -#ifndef WIN32 +#ifndef WIN32 && _HDF5USEDLL_ src = H5MM_malloc(nx * sizeof(*src)); dst = H5MM_malloc(nx * sizeof(*dst)); #else @@ -686,7 +691,7 @@ test_multifill(size_t nx) } puts(" PASSED"); -#ifndef WIN32 +#ifndef WIN32 && _HDF5USEDLL_ H5MM_xfree(src); H5MM_xfree(dst); #else @@ -775,8 +780,13 @@ test_endian(size_t nx) } puts(" PASSED"); +#ifdef WIN32 && _HDF5USEDLL_ + HDfree(src); + HDfree(dst); +#else H5MM_xfree(src); H5MM_xfree(dst); +#endif return SUCCEED; error: @@ -877,8 +887,13 @@ test_transpose(size_t nx, size_t ny) } puts(" PASSED"); +#ifndef WIN32 && _HDF5USEDLL_ H5MM_xfree(src); H5MM_xfree(dst); +#else + HDfree(src); + HDfree(dst); +#endif return SUCCEED; error: -- cgit v0.12