mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
SF patch #587889, fix memory leak of tp_doc
This commit is contained in:
parent
3bbb617ca4
commit
cee5ca060b
1 changed files with 1 additions and 0 deletions
|
@ -1462,6 +1462,7 @@ type_dealloc(PyTypeObject *type)
|
|||
Py_XDECREF(type->tp_mro);
|
||||
Py_XDECREF(type->tp_cache);
|
||||
Py_XDECREF(type->tp_subclasses);
|
||||
PyObject_Free(type->tp_doc);
|
||||
Py_XDECREF(et->name);
|
||||
Py_XDECREF(et->slots);
|
||||
type->ob_type->tp_free((PyObject *)type);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue