diff options
author | Thomas Wouters <thomas@python.org> | 2006-03-08 01:47:19 (GMT) |
---|---|---|
committer | Thomas Wouters <thomas@python.org> | 2006-03-08 01:47:19 (GMT) |
commit | b3153832c2e6a940afcb54d81b78da6ee63775db (patch) | |
tree | dbc9cc687d0f6d96eb99b1f3382a27e1f9e05fa3 /PC | |
parent | e920f0d34014d9864cd8b533c861f62f2a6b0a93 (diff) | |
download | cpython-b3153832c2e6a940afcb54d81b78da6ee63775db.zip cpython-b3153832c2e6a940afcb54d81b78da6ee63775db.tar.gz cpython-b3153832c2e6a940afcb54d81b78da6ee63775db.tar.bz2 |
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.
Diffstat (limited to 'PC')
0 files changed, 0 insertions, 0 deletions