Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 37b0c1d

Browse files
committed
Fix memory leak and bump the version per Greg
1 parent b4a5581 commit 37b0c1d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Modules/_bsddb.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
#error "eek! DBVER can't handle minor versions > 9"
9898
#endif
9999

100-
#define PY_BSDDB_VERSION "4.2.8"
100+
#define PY_BSDDB_VERSION "4.2.9"
101101
static char *rcs_id = "$Id$";
102102

103103

@@ -877,7 +877,7 @@ DBEnv_dealloc(DBEnvObject* self)
877877
}
878878
#endif
879879

880-
if (!self->closed) {
880+
if (self->db_env) {
881881
MYDB_BEGIN_ALLOW_THREADS;
882882
self->db_env->close(self->db_env, 0);
883883
MYDB_END_ALLOW_THREADS;

0 commit comments

Comments
 (0)