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-Tag: accepted/tizen/5.0/unified/20181102.030725~102 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1c2a5888cfffdfb3976145634ee5663e4b621675;p=platform%2Fupstream%2Flmdb.git 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 56243dc..19930fc 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);