Mercurial > cpython-lru_cache-weakref
diff Objects/typeobject.c @ 24428:15ee445af07f 2.2
SF patch #587889, fix memory leak of tp_doc
| author | Neal Norwitz <nnorwitz@gmail.com> |
|---|---|
| date | Tue, 30 Jul 2002 00:57:38 +0000 |
| parents | 7d0982056f72 |
| children | ebc8667f325a |
line wrap: on
line diff
--- a/Objects/typeobject.c Mon Jul 29 14:04:36 2002 +0000 +++ b/Objects/typeobject.c Tue Jul 30 00:57:38 2002 +0000 @@ -1402,6 +1402,7 @@ 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);
