[New-bugs-announce] [issue36421] A possible double decref in _ctypes.c's PyCArrayType_new()

Zackery Spytz report at bugs.python.org
Sun Mar 24 23:31:24 EDT 2019


New submission from Zackery Spytz <zspytz at gmail.com>:

In PyCArrayType_new(), type_attr is assigned to stgdict->proto. If the PyDict_Update() call fails in that function, type_attr will be decrefed an extra time when stgdict is deallocated.

I'll create a PR for this issue.

----------
components: Extension Modules, ctypes
messages: 338779
nosy: ZackerySpytz
priority: normal
severity: normal
status: open
title: A possible double decref in _ctypes.c's PyCArrayType_new()
versions: Python 3.7, Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36421>
_______________________________________


More information about the New-bugs-announce mailing list