Commit 745dc65b authored by Eddie Elizondo's avatar Eddie Elizondo Committed by Benjamin Peterson

closes bpo-32898: Fix debug build crash with COUNT_ALLOCS (GH-5800)

parent c84cf6c0
......@@ -425,6 +425,7 @@ Tal Einat
Eric Eisner
Andrew Eland
Julien Élie
Eduardo Elizondo
Lance Ellinghaus
Daniel Ellis
Phil Elson
......
Fix the python debug build when using COUNT_ALLOCS.
......@@ -86,7 +86,7 @@ static void
show_alloc(void)
{
PyInterpreterState *interp = PyThreadState_GET()->interp;
if (!inter->core_config.show_alloc_count) {
if (!interp->core_config.show_alloc_count) {
return;
}
......
......@@ -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, "
......
......@@ -45,7 +45,7 @@ static void
show_track(void)
{
PyInterpreterState *interp = PyThreadState_GET()->interp;
if (!inter->core_config.show_alloc_count) {
if (!interp->core_config.show_alloc_count) {
return;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment