]> granicus.if.org Git - python/commit
Add missing DECREF to PyErr_WriteUnraisable(). That function reports
authorThomas Wouters <thomas@python.org>
Sat, 15 Apr 2006 23:27:28 +0000 (23:27 +0000)
committerThomas Wouters <thomas@python.org>
Sat, 15 Apr 2006 23:27:28 +0000 (23:27 +0000)
commitb8f81d48634ccee8a8a4089d04b81e1aadbc04fe
tree7fb3fe9a004e165a0847388d893a380522cc23a0
parent81b092d0e60db093c8ed2637deea545cb1de471a
Add missing DECREF to PyErr_WriteUnraisable(). That function reports
exceptions that can't be raised any further, because (for instance) they
occur in __del__ methods. The coroutine tests in test_generators was
triggering this leak. Remove the leakers' testcase, and add a simpler
testcase that explicitly tests this leak to test_generators.

test_generators now no longer leaks at all, on my machine. This fix may also
solve other leaks, but my full refleakhunting run is still busy, so who
knows?
Lib/test/leakers/test_gen1.py [deleted file]
Lib/test/test_generators.py
Python/errors.c