]> granicus.if.org Git - python/commitdiff
Fix the advertised size of PyCFunctionObjects in sys._debugmallocstats().
authorAntoine Pitrou <solipsis@pitrou.net>
Sun, 30 Dec 2012 21:46:56 +0000 (22:46 +0100)
committerAntoine Pitrou <solipsis@pitrou.net>
Sun, 30 Dec 2012 21:46:56 +0000 (22:46 +0100)
1  2 
Objects/methodobject.c

index 5b799c96729f45c6036f165c0bb86b988573cff0,60df302b0c37a20a1fa980d9433821d9ea6fb0b7..2d1f73019bb98b6889fd0c9800db83e00ac0a359
@@@ -352,6 -343,20 +352,6 @@@ voi
  _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(),
 -   but it's part of the API so we need to keep a function around that
 -   existing C extensions can call.
 -*/
 -
 -#undef PyCFunction_New
 -PyAPI_FUNC(PyObject *) PyCFunction_New(PyMethodDef *, PyObject *);
 -
 -PyObject *
 -PyCFunction_New(PyMethodDef *ml, PyObject *self)
 -{
 -    return PyCFunction_NewEx(ml, self, NULL);
 -}