mirror of
https://github.com/python/cpython.git
synced 2025-08-28 20:56:54 +00:00
closes bpo-32898: Fix debug build crash with COUNT_ALLOCS (GH-5800)
This commit is contained in:
parent
c84cf6c03f
commit
745dc65b17
5 changed files with 6 additions and 3 deletions
|
@ -97,10 +97,11 @@ void
|
|||
dump_counts(FILE* f)
|
||||
{
|
||||
PyInterpreterState *interp = PyThreadState_GET()->interp;
|
||||
if (!inter->core_config.show_alloc_count) {
|
||||
if (!interp->core_config.show_alloc_count) {
|
||||
return;
|
||||
}
|
||||
|
||||
PyTypeObject *tp;
|
||||
for (tp = type_list; tp; tp = tp->tp_next)
|
||||
fprintf(f, "%s alloc'd: %" PY_FORMAT_SIZE_T "d, "
|
||||
"freed: %" PY_FORMAT_SIZE_T "d, "
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue