From 465a67bfaf39ec4cf550cc3c355669918c46a423 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Wed, 25 Oct 2023 17:41:40 +0200 Subject: [PATCH] Properly close cursors before commit and db deletion --- src/Cache.cpp | 2 ++ 1 file changed, 2 insertions(+) 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) {