]> the.earth.li Git - onak.git/commitdiff
Fix memory leak on db4 cleanup.
authorJonathan McDowell <noodles@earth.li>
Thu, 14 Jul 2005 15:42:37 +0000 (15:42 +0000)
committerJonathan McDowell <noodles@earth.li>
Thu, 14 Jul 2005 15:42:37 +0000 (15:42 +0000)
Make sure we cleanup our dbconns array when shutting down the db4 backend.

keydb_db4.c

index 6d57cd312b938b76d46a5f29875122a0a18d3db1..1596e5b97f4c7f60167eebd1318c8322f130e4aa 100644 (file)
@@ -270,6 +270,8 @@ void cleanupdb(void)
                                dbconns[i] = NULL;
                        }
                }
+               free(dbconns);
+               dbconns = NULL;
                dbenv->close(dbenv, 0);
                dbenv = NULL;
        }