From: Neal Norwitz Date: Tue, 30 Jul 2002 00:57:38 +0000 (+0000) Subject: SF patch #587889, fix memory leak of tp_doc X-Git-Tag: v2.2.2b1~251 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5a35bb30e985f3039c60eb44d5cd969146b057c9;p=thirdparty%2FPython%2Fcpython.git SF patch #587889, fix memory leak of tp_doc --- diff --git a/Objects/typeobject.c b/Objects/typeobject.c index a599127aa22e..f430be4258c5 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -1402,6 +1402,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);