summaryrefslogtreecommitdiff
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorGregory P. Smith <greg@krypto.org>2013-03-23 16:06:06 -0700
committerGregory P. Smith <greg@krypto.org>2013-03-23 16:06:06 -0700
commitf20651c7878e3b37a7175922bf7a1ff4b428f818 (patch)
treeaae93c8833441f33e515a234e6e5b61090032844 /Python/pythonrun.c
parent09419f23ef7e459956abadb2834b14c553637abd (diff)
parent184eb1cba66def75440ee585826b437711ea5996 (diff)
downloadcpython-f20651c7878e3b37a7175922bf7a1ff4b428f818.tar.gz
Fixes issue4653 - Correctly specify the buffer size to FormatMessageW and
correctly check for errors on two CreateFileMapping calls.
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r--Python/pythonrun.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index dd32017574..f0d8550773 100644
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -38,9 +38,10 @@
#ifndef Py_REF_DEBUG
#define PRINT_TOTAL_REFS()
#else /* Py_REF_DEBUG */
-#define PRINT_TOTAL_REFS() fprintf(stderr, \
- "[%" PY_FORMAT_SIZE_T "d refs]\n", \
- _Py_GetRefTotal())
+#define PRINT_TOTAL_REFS() fprintf(stderr, \
+ "[%" PY_FORMAT_SIZE_T "d refs, " \
+ "%" PY_FORMAT_SIZE_T "d blocks]\n", \
+ _Py_GetRefTotal(), _Py_GetAllocatedBlocks())
#endif
#ifdef __cplusplus