Kaydet (Commit) b2820ae3 authored tarafından Thomas Wouters's avatar Thomas Wouters

Fix another leak in bsddb, and avoid use of uninitialized value -- funny how

gcc 4.0.x wasn't complaining about *that* one ;)
üst 9fe582ce
...@@ -1742,6 +1742,7 @@ DB_join(DBObject* self, PyObject* args) ...@@ -1742,6 +1742,7 @@ DB_join(DBObject* self, PyObject* args)
return NULL; return NULL;
} }
cursors[x] = ((DBCursorObject*)item)->dbc; cursors[x] = ((DBCursorObject*)item)->dbc;
Py_DECREF(item);
} }
MYDB_BEGIN_ALLOW_THREADS; MYDB_BEGIN_ALLOW_THREADS;
...@@ -2017,7 +2018,7 @@ _db_compareCallback(DB* db, ...@@ -2017,7 +2018,7 @@ _db_compareCallback(DB* db,
{ {
int res = 0; int res = 0;
PyObject *args; PyObject *args;
PyObject *result; PyObject *result = NULL;
DBObject *self = (DBObject *)db->app_private; DBObject *self = (DBObject *)db->app_private;
if (self == NULL || self->btCompareCallback == NULL) { if (self == NULL || self->btCompareCallback == NULL) {
......
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