diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2023-10-25 17:41:40 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2023-10-25 17:41:40 +0200 |
commit | 465a67bfaf39ec4cf550cc3c355669918c46a423 (patch) | |
tree | 4488cd0988a376a46193393f8044f5cb3d3adc5a | |
parent | 7dd90ed6f07275c5f1476470bcfa0fd27480be32 (diff) |
Properly close cursors before commit and db deletion
-rw-r--r-- | src/Cache.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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) { |