diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index 84429ee..21d11b9 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -1818,7 +1818,7 @@ mdb_page_unspill(MDB_txn *tx0, MDB_page *mp, MDB_page **ret) if (env->me_flags & MDB_WRITEMAP) { np = mp; } else { - np = mdb_page_malloc(txn, num); + np = mdb_page_malloc(tx0, num); if (!np) return ENOMEM; if (num > 1)