projects
/
platform
/
upstream
/
lmdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
ec6cf4e
)
Must do dlist_free before releasing Wmutex
author
Howard Chu
<hyc@symas.com>
Sun, 20 Jul 2014 15:10:34 +0000
(08:10 -0700)
committer
Howard Chu
<hyc@symas.com>
Wed, 1 Oct 2014 19:36:37 +0000
(20:36 +0100)
libraries/liblmdb/mdb.c
patch
|
blob
|
history
diff --git
a/libraries/liblmdb/mdb.c
b/libraries/liblmdb/mdb.c
index cc15a1bfd1113342369924a953107205f979253f..6179b57868d255661d8e1fa2c5bb3a0b0862669a 100644
(file)
--- a/
libraries/liblmdb/mdb.c
+++ b/
libraries/liblmdb/mdb.c
@@
-2801,6
+2801,10
@@
mdb_txn_reset0(MDB_txn *txn, const char *act)
env->me_pghead = NULL;
env->me_pglast = 0;
+ if (!(env->me_flags & MDB_WRITEMAP)) {
+ mdb_dlist_free(txn);
+ }
+
if (!txn->mt_parent) {
if (mdb_midl_shrink(&txn->mt_free_pgs))
env->me_free_pgs = txn->mt_free_pgs;
@@
-2813,9
+2817,6
@@
mdb_txn_reset0(MDB_txn *txn, const char *act)
mdb_cursors_close(txn, 0);
- if (!(env->me_flags & MDB_WRITEMAP)) {
- mdb_dlist_free(txn);
- }
mdb_midl_free(pghead);
if (txn->mt_parent) {