From 404bc09a23d44a088ed4970975924469947cb4d5 Mon Sep 17 00:00:00 2001 From: Jonathan McDowell Date: Thu, 14 Jul 2005 15:42:37 +0000 Subject: [PATCH] Fix memory leak on db4 cleanup. Make sure we cleanup our dbconns array when shutting down the db4 backend. --- keydb_db4.c | 2 ++ 1 file changed, 2 insertions(+) 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; } -- 2.39.5