From 5c693ccd96157464dc2d59c130607f6075d0f47a Mon Sep 17 00:00:00 2001 From: sasgas Date: Thu, 3 Dec 2020 11:22:34 +0900 Subject: [PATCH] mdbx++: fix missing null assignment. Resolves https://github.com/erthink/libmdbx/pull/143 Change-Id: Ifb88cebe2f07297a2f6cf70e31ae6abe61a0c0b2 --- AUTHORS | 1 + src/mdbx.c++ | 2 ++ 2 files changed, 3 insertions(+) diff --git a/AUTHORS b/AUTHORS index d050f2c0..ca419517 100644 --- a/AUTHORS +++ b/AUTHORS @@ -30,3 +30,4 @@ Contributors - Sebastien Launay - Vladimir Romanov - Zano Foundation +- 장세연 diff --git a/src/mdbx.c++ b/src/mdbx.c++ index 3e859798..759d4ff8 100644 --- a/src/mdbx.c++ +++ b/src/mdbx.c++ @@ -1319,6 +1319,7 @@ void txn_managed::abort() { handle_ = nullptr; err.throw_exception(); } + handle_ = nullptr; } void txn_managed::commit() { @@ -1328,6 +1329,7 @@ void txn_managed::commit() { handle_ = nullptr; err.throw_exception(); } + handle_ = nullptr; } //------------------------------------------------------------------------------