diff --git a/src/Cache.cpp b/src/Cache.cpp index bfe27c30..a5d970ca 100644 --- a/src/Cache.cpp +++ b/src/Cache.cpp @@ -1748,9 +1748,11 @@ Cache::runMigrations() combineOlmSessionKeyFromCurveAndSessionId(curveKey, session_id), json); } + olmCursor.close(); oldDb.drop(txn, true); } + dbNames.close(); if (doCommit) txn.commit(); } catch (const lmdb::error &e) {