[Python-checkins] r42971 - python/trunk/Modules/_bsddb.c
thomas.wouters
python-checkins at python.org
Sun Mar 12 01:01:41 CET 2006
Author: thomas.wouters
Date: Sun Mar 12 01:01:38 2006
New Revision: 42971
Modified:
python/trunk/Modules/_bsddb.c
Log:
Fix another leak in bsddb, and avoid use of uninitialized value -- funny how
gcc 4.0.x wasn't complaining about *that* one ;)
Modified: python/trunk/Modules/_bsddb.c
==============================================================================
--- python/trunk/Modules/_bsddb.c (original)
+++ python/trunk/Modules/_bsddb.c Sun Mar 12 01:01:38 2006
@@ -1742,6 +1742,7 @@
return NULL;
}
cursors[x] = ((DBCursorObject*)item)->dbc;
+ Py_DECREF(item);
}
MYDB_BEGIN_ALLOW_THREADS;
@@ -2017,7 +2018,7 @@
{
int res = 0;
PyObject *args;
- PyObject *result;
+ PyObject *result = NULL;
DBObject *self = (DBObject *)db->app_private;
if (self == NULL || self->btCompareCallback == NULL) {
More information about the Python-checkins
mailing list