summaryrefslogtreecommitdiff
path: root/Python/dynload_win.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-11-25 15:07:36 +0200
committerSerhiy Storchaka <storchaka@gmail.com>2015-11-25 15:07:36 +0200
commit57e011b18062844b9bedcd83ff8a61c252869cb8 (patch)
tree3a1f055c5e762c4e8bc52154eb2fe3da99d583f6 /Python/dynload_win.c
parentb299a50f09f8c9125bf25266364a44d208d50104 (diff)
parent65ceb387404beabce7a1a1d512cd4095900cf6b4 (diff)
downloadcpython-57e011b18062844b9bedcd83ff8a61c252869cb8.tar.gz
Issue #25725: Fixed a reference leak in pickle.loads() when unpickling
invalid data including tuple instructions.
Diffstat (limited to 'Python/dynload_win.c')
-rw-r--r--Python/dynload_win.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/Python/dynload_win.c b/Python/dynload_win.c
index f2c796e94d..9fb0525c5b 100644
--- a/Python/dynload_win.c
+++ b/Python/dynload_win.c
@@ -24,12 +24,10 @@ void _Py_DeactivateActCtx(ULONG_PTR cookie);
#define PYD_DEBUG_SUFFIX ""
#endif
-#define STRINGIZE2(x) #x
-#define STRINGIZE(x) STRINGIZE2(x)
#ifdef PYD_PLATFORM_TAG
-#define PYD_TAGGED_SUFFIX PYD_DEBUG_SUFFIX ".cp" STRINGIZE(PY_MAJOR_VERSION) STRINGIZE(PY_MINOR_VERSION) "-" PYD_PLATFORM_TAG ".pyd"
+#define PYD_TAGGED_SUFFIX PYD_DEBUG_SUFFIX ".cp" Py_STRINGIFY(PY_MAJOR_VERSION) Py_STRINGIFY(PY_MINOR_VERSION) "-" PYD_PLATFORM_TAG ".pyd"
#else
-#define PYD_TAGGED_SUFFIX PYD_DEBUG_SUFFIX ".cp" STRINGIZE(PY_MAJOR_VERSION) STRINGIZE(PY_MINOR_VERSION) ".pyd"
+#define PYD_TAGGED_SUFFIX PYD_DEBUG_SUFFIX ".cp" Py_STRINGIFY(PY_MAJOR_VERSION) Py_STRINGIFY(PY_MINOR_VERSION) ".pyd"
#endif
#define PYD_UNTAGGED_SUFFIX PYD_DEBUG_SUFFIX ".pyd"