mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-04-12 17:31:09 +08:00
[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
This commit is contained in:
parent
127b3b1b63
commit
2443c16bf0
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user