diff options
author | Neil Schemenauer <nas-github@arctrix.com> | 2020-10-27 18:55:52 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-27 18:55:52 (GMT) |
commit | 0564aafb71a153dd0aca4b9266dfae9336a4f2cb (patch) | |
tree | d1bb2a8f760702cccc690f2cbc79bbf916c481b3 /Objects | |
parent | 15acc4eaba8519d7d5f2acaffde65446b44dcf79 (diff) | |
download | cpython-0564aafb71a153dd0aca4b9266dfae9336a4f2cb.zip cpython-0564aafb71a153dd0aca4b9266dfae9336a4f2cb.tar.gz cpython-0564aafb71a153dd0aca4b9266dfae9336a4f2cb.tar.bz2 |
bpo-42099: Fix reference to ob_type in unionobject.c and ceval (GH-22829)
* Use Py_TYPE() rather than o->ob_type.
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/unionobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/unionobject.c b/Objects/unionobject.c index 89fdaf4..1b7f8ab 100644 --- a/Objects/unionobject.c +++ b/Objects/unionobject.c @@ -15,7 +15,7 @@ unionobject_dealloc(PyObject *self) unionobject *alias = (unionobject *)self; Py_XDECREF(alias->args); - self->ob_type->tp_free(self); + Py_TYPE(self)->tp_free(self); } static Py_hash_t |