summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/H5AC.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5AC.c b/src/H5AC.c
index 0755566..d08c7df 100644
--- a/src/H5AC.c
+++ b/src/H5AC.c
@@ -763,13 +763,13 @@ H5AC_dest(H5F_t *f, hid_t dxpl_id)
}
#endif /* H5_HAVE_PARALLEL */
- f->shared->cache = NULL;
-
if ( H5C_dest(f, dxpl_id, H5AC_noblock_dxpl_id, cache) < 0 ) {
HGOTO_ERROR(H5E_CACHE, H5E_CANTFREE, FAIL, "can't destroy cache")
}
+ f->shared->cache = NULL;
+
#ifdef H5_HAVE_PARALLEL
if ( aux_ptr != NULL ) {