From: Neal Norwitz Date: Tue, 30 Jul 2002 00:42:06 +0000 (+0000) Subject: SF patch #587889, fix memory leak of tp_doc X-Git-Tag: v2.3c1~4831 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cee5ca060bc1e8870fdadf1ef719761fe2dc500d;p=python SF patch #587889, fix memory leak of tp_doc --- diff --git a/Objects/typeobject.c b/Objects/typeobject.c index 3def1343c0..6bd2b7a366 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -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);