From 1c2a5888cfffdfb3976145634ee5663e4b621675 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Mon, 28 Dec 2015 19:33:51 +0000 Subject: [PATCH] ITS#8342 MDB_VL32/WIN32 - close file mapping handle in env_close --- libraries/liblmdb/mdb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index 56243dc7f2..19930fcfc7 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -5350,6 +5350,7 @@ mdb_env_close0(MDB_env *env, int excl) } #ifdef MDB_VL32 #ifdef _WIN32 + if (env->me_fmh) CloseHandle(env->me_fmh); if (env->me_rpmutex) CloseHandle(env->me_rpmutex); #else pthread_mutex_destroy(&env->me_rpmutex); -- 2.39.5