commit | 0564aafb71a153dd0aca4b9266dfae9336a4f2cb | [log] [tgz] |
---|---|---|
author | Neil Schemenauer <nas-github@arctrix.com> | Tue Oct 27 11:55:52 2020 -0700 |
committer | GitHub <noreply@github.com> | Tue Oct 27 18:55:52 2020 +0000 |
tree | d1bb2a8f760702cccc690f2cbc79bbf916c481b3 | |
parent | 15acc4eaba8519d7d5f2acaffde65446b44dcf79 [diff] [blame] |
bpo-42099: Fix reference to ob_type in unionobject.c and ceval (GH-22829) * Use Py_TYPE() rather than o->ob_type.
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