From 2dba34824fd86001e2e0d0f32141e606a3d11293 Mon Sep 17 00:00:00 2001 From: Patrick Lu Date: Tue, 6 Jul 1999 11:59:40 -0500 Subject: [svn-r1426] had to conditional compile some code out for the debug version of this file on windows. the microsoft c run time lib calls special versions of free and malloc in the debug mode. this code causes problems for the library(crashes) so i am taking the statements out in this version(win32 and debug) until i can figure out a way around the problem --- src/H5O.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/H5O.c b/src/H5O.c index f70803a..3001634 100644 --- a/src/H5O.c +++ b/src/H5O.c @@ -641,9 +641,15 @@ H5O_flush(H5F_t *f, hbool_t destroy, const haddr_t *addr, H5O_t *oh) if (destroy) { /* destroy chunks */ + /*the conditional below is because of the microsoft c run time library + it calls its own version of malloc and free and does checks on the mem. + causes problems with this code so i am taking it out for the win32 debug + version until i can figure out a way around it*/ +#if !defined(WIN32) && !defined(_DEBUG) for (i = 0; i < oh->nchunks; i++) { oh->chunk[i].image = H5MM_xfree(oh->chunk[i].image); } +#endif oh->chunk = H5MM_xfree(oh->chunk); /* destroy messages */ -- cgit v0.12