mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Fix a memory leak -- the cached values of __getattr__ etc. were never
freed.
This commit is contained in:
parent
f6fc1ec462
commit
152d8173a3
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue