summaryrefslogtreecommitdiffstats
path: root/Objects/object.c
diff options
context:
space:
mode:
authorPieter Eendebak <pieter.eendebak@gmail.com>2025-01-12 13:01:49 (GMT)
committerGitHub <noreply@github.com>2025-01-12 13:01:49 (GMT)
commitff39e3ff7bebc9d700d89c5cd22145db2c879cf2 (patch)
tree53c0c58a4565fff1d2563005834739d6bf829b0d /Objects/object.c
parent5ace71713b03cb37d829f50c849a8bb8a518738d (diff)
downloadcpython-ff39e3ff7bebc9d700d89c5cd22145db2c879cf2.zip
cpython-ff39e3ff7bebc9d700d89c5cd22145db2c879cf2.tar.gz
cpython-ff39e3ff7bebc9d700d89c5cd22145db2c879cf2.tar.bz2
gh-126703: Add freelist for `PyMethodObject` (#128594)
Diffstat (limited to 'Objects/object.c')
-rw-r--r--Objects/object.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Objects/object.c b/Objects/object.c
index 4c30257..9befd92 100644
--- a/Objects/object.c
+++ b/Objects/object.c
@@ -937,6 +937,7 @@ _PyObject_ClearFreeLists(struct _Py_freelists *freelists, int is_finalization)
}
clear_freelist(&freelists->unicode_writers, is_finalization, PyMem_Free);
clear_freelist(&freelists->ints, is_finalization, free_object);
+ clear_freelist(&freelists->pymethodobjects, is_finalization, free_object);
}
/*