From: Guido van Rossum Date: Tue, 4 Aug 1998 14:59:16 +0000 (+0000) Subject: Fix a memory leak -- the cached values of __getattr__ etc. were never X-Git-Tag: v1.5.2a1~167 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=152d8173a3844d00d7511484d3c1bfd1b8725613;p=python Fix a memory leak -- the cached values of __getattr__ etc. were never freed. --- diff --git a/Objects/classobject.c b/Objects/classobject.c index 299ea64ded..305c07e494 100644 --- a/Objects/classobject.c +++ b/Objects/classobject.c @@ -143,6 +143,9 @@ class_dealloc(op) Py_DECREF(op->cl_bases); Py_DECREF(op->cl_dict); Py_XDECREF(op->cl_name); + Py_XDECREF(op->cl_getattr); + Py_XDECREF(op->cl_setattr); + Py_XDECREF(op->cl_delattr); free((ANY *)op); }