diff options
Diffstat (limited to 'Python')
-rw-r--r-- | Python/pythonrun.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c index d518f24..6661a19 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -417,12 +417,20 @@ cleanup() flushline(); } +#ifdef COUNT_ALLOCS +extern void dump_counts PROTO((void)); +#endif + void goaway(sts) int sts; { cleanup(); +#ifdef COUNT_ALLOCS + dump_counts(); +#endif + #ifdef USE_THREAD /* Other threads may still be active, so skip most of the |