SF patch #587889, fix memory leak of tp_doc

This commit is contained in:
Neal Norwitz 2002-07-30 00:42:06 +00:00
parent 3bbb617ca4
commit cee5ca060b
1 changed files with 1 additions and 0 deletions

View File

@ -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);