]> granicus.if.org Git - python/commit
Clean up _bsddb.c: add a couple dozen missing Py_DECREF()'s, a handful of
authorThomas Wouters <thomas@python.org>
Wed, 8 Mar 2006 01:47:19 +0000 (01:47 +0000)
committerThomas Wouters <thomas@python.org>
Wed, 8 Mar 2006 01:47:19 +0000 (01:47 +0000)
commitb3153832c2e6a940afcb54d81b78da6ee63775db
treedbc9cc687d0f6d96eb99b1f3382a27e1f9e05fa3
parente920f0d34014d9864cd8b533c861f62f2a6b0a93
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.
Modules/_bsddb.c