[proxy] github.com← back | site home | direct (HTTPS) ↗ | proxy home | ◑ dark◐ light

bpo-36421: Fix a possible double decref in _ctypes.c's PyCArrayType_new() by ZackerySpytz · Pull Request #12530 · python/cpython

the-knights-who-say-ni

…ew()

Set type_attr to NULL after the assignment to stgdict->proto (like
what is done with stgdict after the Py_SETREF() call) so that it is
not decrefed twice on error.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request

Mar 25, 2019
…ew(). (pythonGH-12530)

Set type_attr to NULL after the assignment to stgdict->proto (like
what is done with stgdict after the Py_SETREF() call) so that it is
not decrefed twice on error.
(cherry picked from commit 5e33378)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>

miss-islington added a commit that referenced this pull request

Mar 25, 2019
…ew(). (GH-12530)

Set type_attr to NULL after the assignment to stgdict->proto (like
what is done with stgdict after the Py_SETREF() call) so that it is
not decrefed twice on error.
(cherry picked from commit 5e33378)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>