Fix a memory leak -- the cached values of __getattr__ etc. were never

freed.
This commit is contained in:
Guido van Rossum 1998-08-04 14:59:16 +00:00
parent f6fc1ec462
commit 152d8173a3
1 changed files with 3 additions and 0 deletions

View File

@ -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);
}