Christian Heimes added the comment: Oh, you are right ... The patch is trivial: I switched the Py_DECREF() and return NULL lines. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue18514> _______________________________________