Xavier de Gaye added the comment: An improved patch with a test case. ---------- Added file: http://bugs.python.org/file35349/refleak_2.patch _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue20766> _______________________________________