summary refs log tree commit diff
path: root/src/Cache.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Cache.cpp')
-rw-r--r--src/Cache.cpp2
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) {