From 37b0c1dbf4c6c31e4db11c139971e999679ef276 Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Fri, 9 Jul 2004 23:33:06 +0000 Subject: Fix memory leak and bump the version per Greg --- Modules/_bsddb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Modules/_bsddb.c b/Modules/_bsddb.c index a35822a..6a726a5 100644 --- a/Modules/_bsddb.c +++ b/Modules/_bsddb.c @@ -97,7 +97,7 @@ #error "eek! DBVER can't handle minor versions > 9" #endif -#define PY_BSDDB_VERSION "4.2.8" +#define PY_BSDDB_VERSION "4.2.9" static char *rcs_id = "$Id$"; @@ -877,7 +877,7 @@ DBEnv_dealloc(DBEnvObject* self) } #endif - if (!self->closed) { + if (self->db_env) { MYDB_BEGIN_ALLOW_THREADS; self->db_env->close(self->db_env, 0); MYDB_END_ALLOW_THREADS; -- cgit v0.12