mirror of https://github.com/python/cpython.git
Fix a memory leak -- the cached values of __getattr__ etc. were never
freed.
This commit is contained in:
parent
f6fc1ec462
commit
152d8173a3
|
@ -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…
Reference in New Issue