]> granicus.if.org Git - python/commitdiff
Fix memory leak and bump the version per Greg
authorNeal Norwitz <nnorwitz@gmail.com>
Fri, 9 Jul 2004 23:33:06 +0000 (23:33 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Fri, 9 Jul 2004 23:33:06 +0000 (23:33 +0000)
Modules/_bsddb.c

index a35822a702cb8ddd3c7ac7c05c2ce9649d59952a..6a726a589c0383df36b5b73bb21a6d2e12194192 100644 (file)
@@ -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;