From: Jonathan McDowell Date: Thu, 14 Jul 2005 15:42:37 +0000 (+0000) Subject: Fix memory leak on db4 cleanup. X-Git-Tag: 0.3.3~21 X-Git-Url: https://the.earth.li/gitweb/?a=commitdiff_plain;h=404bc09a23d44a088ed4970975924469947cb4d5;p=onak.git 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; }