New submission from Tom Flanagan: call_tzinfo_method in Modules/_datetimemodule.c:900 calls Py_DECREF(offset) before trying to use offset to generate a TypeError message.
This causes a crash if that was the last reference to offset and Py_DECREF clears it. ---------- components: Library (Lib) files: python_bug.diff keywords: patch messages: 223722 nosy: Knio, belopolsky priority: normal severity: normal status: open title: Premature Py_DECREF while generating a TypeError in call_tzinfo_method type: crash versions: Python 3.3, Python 3.4, Python 3.5 Added file: http://bugs.python.org/file36042/python_bug.diff _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue22044> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com