diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2004-07-09 23:33:06 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2004-07-09 23:33:06 (GMT) |
commit | 37b0c1dbf4c6c31e4db11c139971e999679ef276 (patch) | |
tree | 47f7f79edd0e75d1998d60a5cde4115f05165fc6 /Modules | |
parent | b4a55813fec49bb984991b12e5096eb8b1944f93 (diff) | |
download | cpython-37b0c1dbf4c6c31e4db11c139971e999679ef276.zip cpython-37b0c1dbf4c6c31e4db11c139971e999679ef276.tar.gz cpython-37b0c1dbf4c6c31e4db11c139971e999679ef276.tar.bz2 |
Fix memory leak and bump the version per Greg
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_bsddb.c | 4 |
1 files 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; |