[Python-checkins] cpython (merge 3.3 -> default): Fix the advertised size of PyCFunctionObjects in sys._debugmallocstats().

antoine.pitrou python-checkins at python.org
Sun Dec 30 22:49:04 CET 2012


http://hg.python.org/cpython/rev/e61381137b4a
changeset:   81160:e61381137b4a
parent:      81158:f173c2e92b64
parent:      81159:9e6ead98762e
user:        Antoine Pitrou <solipsis at pitrou.net>
date:        Sun Dec 30 22:46:56 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
@@ -352,6 +352,6 @@
 _PyCFunction_DebugMallocStats(FILE *out)
 {
     _PyDebugAllocatorStats(out,
-                           "free PyCFunction",
-                           numfree, sizeof(PyCFunction));
+                           "free PyCFunctionObjects",
+                           numfree, sizeof(PyCFunctionObject));
 }

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list