Commits

Anonymous committed 9e6ead9 Draft

Fix the advertised size of PyCFunctionObjects in sys._debugmallocstats().

Comments (0)

Files changed (1)

Objects/methodobject.c

 _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(),