Kaydet (Commit) 37b0c1db authored tarafından Neal Norwitz's avatar Neal Norwitz

Fix memory leak and bump the version per Greg

üst b4a55813
...@@ -97,7 +97,7 @@ ...@@ -97,7 +97,7 @@
#error "eek! DBVER can't handle minor versions > 9" #error "eek! DBVER can't handle minor versions > 9"
#endif #endif
#define PY_BSDDB_VERSION "4.2.8" #define PY_BSDDB_VERSION "4.2.9"
static char *rcs_id = "$Id$"; static char *rcs_id = "$Id$";
...@@ -877,7 +877,7 @@ DBEnv_dealloc(DBEnvObject* self) ...@@ -877,7 +877,7 @@ DBEnv_dealloc(DBEnvObject* self)
} }
#endif #endif
if (!self->closed) { if (self->db_env) {
MYDB_BEGIN_ALLOW_THREADS; MYDB_BEGIN_ALLOW_THREADS;
self->db_env->close(self->db_env, 0); self->db_env->close(self->db_env, 0);
MYDB_END_ALLOW_THREADS; MYDB_END_ALLOW_THREADS;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment