From f16251c705ca8b62d3a7dd015941093e68ed8c6f Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Tue, 6 Jun 2000 13:53:16 -0500 Subject: [svn-r2344] Fixed a bug where memory was being inspected after being free'd, found only in Windows. --- src/H5AC.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/H5AC.c b/src/H5AC.c index 00ecf0e..f8acbb3 100644 --- a/src/H5AC.c +++ b/src/H5AC.c @@ -425,6 +425,8 @@ H5AC_flush(H5F_t *f, const H5AC_class_t *type, haddr_t addr, hbool_t destroy) continue; #endif if (!type || type == (*info)->type) { + H5AC_subid_t type_id=(*info)->type->id; /* Remember this for later */ + flush = (*info)->type->flush; status = (flush)(f, destroy, (*info)->addr, (*info)); if (status < 0) { @@ -432,7 +434,7 @@ H5AC_flush(H5F_t *f, const H5AC_class_t *type, haddr_t addr, hbool_t destroy) HRETURN_ERROR(H5E_CACHE, H5E_CANTFLUSH, FAIL, "unable to flush cache"); } - cache->diagnostics[(*info)->type->id].nflushes++; + cache->diagnostics[type_id].nflushes++; if (destroy) (*info)= NULL; } -- cgit v0.12