[Python-checkins] cpython (3.3): Fix the advertised size of PyCFunctionObjects in sys._debugmallocstats().
antoine.pitrou
python-checkins at python.org
Sun Dec 30 22:49:03 CET 2012
http://hg.python.org/cpython/rev/9e6ead98762e
changeset: 81159:9e6ead98762e
branch: 3.3
parent: 81157:e1a0901e4ef7
user: Antoine Pitrou <solipsis at pitrou.net>
date: Sun Dec 30 22:46:04 2012 +0100
summary:
Fix the advertised size of PyCFunctionObjects in sys._debugmallocstats().
files:
Objects/methodobject.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Objects/methodobject.c b/Objects/methodobject.c
--- a/Objects/methodobject.c
+++ b/Objects/methodobject.c
@@ -343,8 +343,8 @@
_PyCFunction_DebugMallocStats(FILE *out)
{
_PyDebugAllocatorStats(out,
- "free PyCFunction",
- numfree, sizeof(PyCFunction));
+ "free PyCFunctionObjects",
+ numfree, sizeof(PyCFunctionObject));
}
/* PyCFunction_New() is now just a macro that calls PyCFunction_NewEx(),
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list