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

gcc 4.0.x wasn't complaining about *that* one ;)
This commit is contained in:
Thomas Wouters 2006-03-12 00:01:38 +00:00
parent 9fe582ceec
commit b2820ae355
1 changed files with 2 additions and 1 deletions

View File

@ -1742,6 +1742,7 @@ DB_join(DBObject* self, PyObject* args)
return NULL;
}
cursors[x] = ((DBCursorObject*)item)->dbc;
Py_DECREF(item);
}
MYDB_BEGIN_ALLOW_THREADS;
@ -2017,7 +2018,7 @@ _db_compareCallback(DB* db,
{
int res = 0;
PyObject *args;
PyObject *result;
PyObject *result = NULL;
DBObject *self = (DBObject *)db->app_private;
if (self == NULL || self->btCompareCallback == NULL) {