From 8eab2b67fdf83c657f996debfc238703a78b337b Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Fri, 5 May 2017 10:42:28 +0200 Subject: Don't leak transactions when copying them. Previsouly we would hit the maxreaders limit --- common/storage_lmdb.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'common') diff --git a/common/storage_lmdb.cpp b/common/storage_lmdb.cpp index e3685a5..cb7bca4 100644 --- a/common/storage_lmdb.cpp +++ b/common/storage_lmdb.cpp @@ -563,6 +563,7 @@ DataStore::Transaction::Transaction(Transaction &&other) : d(nullptr) DataStore::Transaction &DataStore::Transaction::operator=(DataStore::Transaction &&other) { if (&other != this) { + abort(); delete d; d = other.d; other.d = nullptr; -- cgit v1.2.3