diff options
author | Eddie Elizondo <eduardo.elizondorueda@gmail.com> | 2018-02-22 04:55:18 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2018-02-22 04:55:18 (GMT) |
commit | 745dc65b17b3936e3f9f4099f735f174d30c4e0c (patch) | |
tree | 23b81a11c1e61eb12828acfd356e85866a7edf24 /Objects/object.c | |
parent | c84cf6c03fce1fb73bfaf91d7909f1c2708f14a2 (diff) | |
download | cpython-745dc65b17b3936e3f9f4099f735f174d30c4e0c.zip cpython-745dc65b17b3936e3f9f4099f735f174d30c4e0c.tar.gz cpython-745dc65b17b3936e3f9f4099f735f174d30c4e0c.tar.bz2 |
closes bpo-32898: Fix debug build crash with COUNT_ALLOCS (GH-5800)
Diffstat (limited to 'Objects/object.c')
-rw-r--r-- | Objects/object.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Objects/object.c b/Objects/object.c index fef57fc..220aa90 100644 --- a/Objects/object.c +++ b/Objects/object.c @@ -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, " |