diff options
author | Giampaolo Rodola' <g.rodola@gmail.com> | 2012-12-17 20:46:45 +0100 |
---|---|---|
committer | Giampaolo Rodola' <g.rodola@gmail.com> | 2012-12-17 20:46:45 +0100 |
commit | 27dd44371b3ff11b237e6b620b90b2b89ea7e78a (patch) | |
tree | bf385eb21749951ab7c5566e145df015a1af9742 /Python/pythonrun.c | |
parent | 256a72f8e9db70a130289a61f3c42724b53a5c8c (diff) | |
parent | a2f43a470a189626af7abb3c82e07e32c6fa5f6e (diff) | |
download | cpython-27dd44371b3ff11b237e6b620b90b2b89ea7e78a.tar.gz |
Issue 16646 (ftplib): deliberately use intermediate variable after catching exception
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r-- | Python/pythonrun.c | 7 |
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 |