X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/blobdiff_plain/404bc09a23d44a088ed4970975924469947cb4d5..408ea0b9ceafdc9f861701cfb14b57d09aa47777:/keydb_db4.c diff --git a/keydb_db4.c b/keydb_db4.c index 1596e5b..80397aa 100644 --- a/keydb_db4.c +++ b/keydb_db4.c @@ -144,6 +144,8 @@ void initdb(bool readonly) "Error opening db environment: %s (%s)", config.db_dir, db_strerror(ret)); + dbenv->close(dbenv, 0); + dbenv = NULL; } }