From: Howard Chu Date: Mon, 28 Dec 2015 19:33:51 +0000 (+0000) Subject: ITS#8342 MDB_VL32/WIN32 - close file mapping handle in env_close X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1c2a5888cfffdfb3976145634ee5663e4b621675;p=openldap ITS#8342 MDB_VL32/WIN32 - close file mapping handle in env_close --- 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);