diff options
| author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2018-02-21 21:44:08 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-02-21 21:44:08 -0800 |
| commit | bc2e1104693fd471b96ecac5b2ab4cffa09830ab (patch) | |
| tree | 557d5e1c734e339eea174454a07f29769053d59d /Objects/object.c | |
| parent | c59bc98fb26ff1a2361f168a97da4a5f6c1e5b43 (diff) | |
| download | cpython-git-bc2e1104693fd471b96ecac5b2ab4cffa09830ab.tar.gz | |
closes bpo-32898: Fix debug build crash with COUNT_ALLOCS (GH-5800)
(cherry picked from commit 745dc65b17b3936e3f9f4099f735f174d30c4e0c)
Co-authored-by: Eddie Elizondo <eduardo.elizondorueda@gmail.com>
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 fef57fce7b..220aa90bf5 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, " |
