From: Antoine Pitrou Date: Sun, 30 Dec 2012 21:46:04 +0000 (+0100) Subject: Fix the advertised size of PyCFunctionObjects in sys._debugmallocstats(). X-Git-Tag: v3.3.1rc1~456 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0811f98e103f87b0b268948f56df55852e6fdf29;p=thirdparty%2FPython%2Fcpython.git Fix the advertised size of PyCFunctionObjects in sys._debugmallocstats(). --- diff --git a/Objects/methodobject.c b/Objects/methodobject.c index 1d143f913194..60df302b0c37 100644 --- a/Objects/methodobject.c +++ b/Objects/methodobject.c @@ -343,8 +343,8 @@ void _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(),