diff --git a/test/nested.cc b/test/nested.cc index 2456886e..d26382bf 100644 --- a/test/nested.cc +++ b/test/nested.cc @@ -68,8 +68,11 @@ bool testcase_nested::teardown() { log_notice("nested: bailout-clean due '%s'", mdbx_strerror(err)); ok = false; } - } else + } else { + if (txn_guard) + txn_end(false); db_table_close(dbi); + } dbi = 0; } return inherited::teardown() && ok;