aboutsummaryrefslogtreecommitdiff
path: root/src/wallet
diff options
context:
space:
mode:
authorJoão Barbosa <joao.paulo.barbosa@gmail.com>2019-01-31 00:05:18 +0000
committerJoão Barbosa <joao.paulo.barbosa@gmail.com>2019-02-04 12:22:55 +0000
commit2f8b8f479bb43729ca2ff40929e8463347b0b7b4 (patch)
treed8ac8861dc68f4cfad476acd43d64e612c81792a /src/wallet
parent8602a1e6aeca65911e4d4c821d3575147ba32a7e (diff)
downloadbitcoin-2f8b8f479bb43729ca2ff40929e8463347b0b7b4.tar.xz
wallet: Close wallet env lock file
Close .walletlock file when a BerkeleyEnvironment is deleted.
Diffstat (limited to 'src/wallet')
-rw-r--r--src/wallet/db.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wallet/db.cpp b/src/wallet/db.cpp
index 24911846ed..463f8e1f41 100644
--- a/src/wallet/db.cpp
+++ b/src/wallet/db.cpp
@@ -136,6 +136,8 @@ void BerkeleyEnvironment::Close()
DbEnv((u_int32_t)0).remove(strPath.c_str(), 0);
if (error_file) fclose(error_file);
+
+ UnlockDirectory(strPath, ".walletlock");
}
void BerkeleyEnvironment::Reset()