summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorPetr Viktorin <encukou@gmail.com>2021-10-21 09:46:20 (GMT)
committerGitHub <noreply@github.com>2021-10-21 09:46:20 (GMT)
commit8a310dd5f4242b5d28013c1905c6573477e3b957 (patch)
tree9d028d11dbdf09621435c9b62d13d24d480823e5 /Include
parent2cbf50e8126905b57ba9d0d5aa4e238c817d5a03 (diff)
downloadcpython-8a310dd5f4242b5d28013c1905c6573477e3b957.zip
cpython-8a310dd5f4242b5d28013c1905c6573477e3b957.tar.gz
cpython-8a310dd5f4242b5d28013c1905c6573477e3b957.tar.bz2
bpo-45315: PyType_FromSpec: Copy spec->name and have the type own the memory for its name (GH-29103)
Diffstat (limited to 'Include')
-rw-r--r--Include/cpython/object.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/cpython/object.h b/Include/cpython/object.h
index 849d5aa..3a8a256 100644
--- a/Include/cpython/object.h
+++ b/Include/cpython/object.h
@@ -290,6 +290,7 @@ typedef struct _heaptypeobject {
PyObject *ht_name, *ht_slots, *ht_qualname;
struct _dictkeysobject *ht_cached_keys;
PyObject *ht_module;
+ char *_ht_tpname; // Storage for "tp_name"; see PyType_FromModuleAndSpec
/* here are optional user slots, followed by the members. */
} PyHeapTypeObject;