From a9c3c22c33762699b362e7598268442fd2df9eb6 Mon Sep 17 00:00:00 2001 From: Sjoerd Mullender Date: Mon, 11 Oct 1993 12:54:31 +0000 Subject: * Extended X interface: pixmap objects, colormap objects visual objects, image objects, and lots of new methods. * Added counting of allocations and deallocations of builtin types if COUNT_ALLOCS is defined. Had to move calls to NEWREF down in some files. * Bug fix in sorting lists. --- Python/pythonrun.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Python/pythonrun.c') diff --git a/Python/pythonrun.c b/Python/pythonrun.c index d518f24f56..6661a19297 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 -- cgit v1.2.1