X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/blobdiff_plain/404bc09a23d44a088ed4970975924469947cb4d5..bf52d4344cd29ab86c1d5981d2ea4d1717eb2f84:/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; } }