diff --git a/src/core.c b/src/core.c index 6abf0d06..e6528c7c 100644 --- a/src/core.c +++ b/src/core.c @@ -15742,6 +15742,7 @@ __cold static int env_close(MDBX_env *env, bool resurrect_after_fork) { next = ptr->next; osal_free(ptr); } + env->me_defer_free = nullptr; #endif /* MDBX_ENABLE_DBI_LOCKFREE */ if (!(env->me_flags & MDBX_RDONLY))