From: Jonathan McDowell Date: Thu, 14 Jul 2005 15:42:37 +0000 (+0000) Subject: Fix memory leak on db4 cleanup. X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/commitdiff_plain/404bc09a23d44a088ed4970975924469947cb4d5?ds=sidebyside Fix memory leak on db4 cleanup. Make sure we cleanup our dbconns array when shutting down the db4 backend. --- diff --git a/keydb_db4.c b/keydb_db4.c index 6d57cd3..1596e5b 100644 --- a/keydb_db4.c +++ b/keydb_db4.c @@ -270,6 +270,8 @@ void cleanupdb(void) dbconns[i] = NULL; } } + free(dbconns); + dbconns = NULL; dbenv->close(dbenv, 0); dbenv = NULL; }