diff options
author | Guido van Rossum <guido@python.org> | 1998-08-04 14:59:16 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-08-04 14:59:16 (GMT) |
commit | 152d8173a3844d00d7511484d3c1bfd1b8725613 (patch) | |
tree | 015d23693b943b2d757cd77bab5eb6c439eac58d /Objects | |
parent | f6fc1ec462e6d45fa322ae00bb2e5c47fa7b4ff5 (diff) | |
download | cpython-152d8173a3844d00d7511484d3c1bfd1b8725613.zip cpython-152d8173a3844d00d7511484d3c1bfd1b8725613.tar.gz cpython-152d8173a3844d00d7511484d3c1bfd1b8725613.tar.bz2 |
Fix a memory leak -- the cached values of __getattr__ etc. were never
freed.
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/classobject.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Objects/classobject.c b/Objects/classobject.c index 299ea64..305c07e 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); } |