[New-bugs-announce] [issue35810] Object Initialization Bug with Heap-allocated Types
Eddie Elizondo
report at bugs.python.org
Wed Jan 23 15:35:52 EST 2019
New submission from Eddie Elizondo <eduardo.elizondorueda at gmail.com>:
Heap-allocated Types initializing instances through `PyObject_{,GC}_New{Var}` will *NOT* not have their refcnt increased. This was totally fine under the assumption that static types are immortal. However, heap-allocated types MUST participate in refcounting. Furthermore, their deallocation routine should also make sure to decrease their refcnt to provide the incref/decref pair.
----------
components: Library (Lib)
messages: 334271
nosy: eelizondo
priority: normal
severity: normal
status: open
title: Object Initialization Bug with Heap-allocated Types
versions: Python 3.8
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35810>
_______________________________________
More information about the New-bugs-announce
mailing list