From b64551e984d836f152269da97347e458d59b1f33 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sun, 22 Jun 2014 11:05:20 -0700 Subject: [PATCH] Fix a Handle leak when reporting transaction errors. --- core/logic/smn_database.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/logic/smn_database.cpp b/core/logic/smn_database.cpp index e2ef45ba..49eda625 100644 --- a/core/logic/smn_database.cpp +++ b/core/logic/smn_database.cpp @@ -1672,6 +1672,8 @@ public: failure_->PushCell(failIndex_); failure_->PushArray(data, txn_->entries.length()); failure_->Execute(NULL); + + handlesys->FreeHandle(dbh, &sec); } }