diff options
Diffstat (limited to 'test/hyperslab.c')
-rw-r--r-- | test/hyperslab.c | 23 |
1 files 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: |