commit | b3153832c2e6a940afcb54d81b78da6ee63775db | [log] [tgz] |
---|---|---|
author | Thomas Wouters <thomas@python.org> | Wed Mar 08 01:47:19 2006 +0000 |
committer | Thomas Wouters <thomas@python.org> | Wed Mar 08 01:47:19 2006 +0000 |
tree | dbc9cc687d0f6d96eb99b1f3382a27e1f9e05fa3 | |
parent | e920f0d34014d9864cd8b533c861f62f2a6b0a93 [diff] |
Clean up _bsddb.c: add a couple dozen missing Py_DECREF()'s, a handful of missing PyObject_Del()'s, simplify some code by using Py_BuildValue() instead of creating a tuple with items manually, stop clobbering builtin exceptions in a few places, and guard against NULL-returning functions some more. This fixes 117 of the 780 (!?!#%@#$!!) reference leaks in test_bsddb3. I ain't not done yet, although this review of 5kloc was just the easy part.