From 891e6627548939c60e229e61feb1d3c3322f3bcc Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 18 Sep 2014 01:22:02 +0100 Subject: [PATCH] Plug leak in 4d02c741b120786df1b87ee9ed49c1d3f9bc7522 Free writer txn on 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 4ed78a7..7ddb36e 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -4559,6 +4559,7 @@ mdb_env_close0(MDB_env *env, int excl) free(env->me_dbxs); free(env->me_path); free(env->me_dirty_list); + free(env->me_txn0); mdb_midl_free(env->me_free_pgs); if (env->me_flags & MDB_ENV_TXKEY) {