]> git.sur5r.net Git - openldap/commitdiff
ITS#8342 MDB_VL32/WIN32 - close file mapping handle in env_close
authorHoward Chu <hyc@openldap.org>
Mon, 28 Dec 2015 19:33:51 +0000 (19:33 +0000)
committerHoward Chu <hyc@openldap.org>
Mon, 28 Dec 2015 19:38:32 +0000 (19:38 +0000)
libraries/liblmdb/mdb.c

index 56243dc7f2e77cf982460eeb493d84eb0f023c91..19930fcfc76780ab63ea8269241ef265b03c1944 100644 (file)
@@ -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);