diff Python/fileutils.c @ 84493:fc01f9497da7

Issue #18203: Fix decode_ascii_surrogateescape(), use PyMem_RawMalloc() as _Py_char2wchar()
author Victor Stinner <victor.stinner@gmail.com>
date Sun, 07 Jul 2013 16:35:54 +0200
parents 18bb92b0c458
children ef889c3d5dc6
line wrap: on
line diff
--- a/Python/fileutils.c	Sun Jul 07 16:32:36 2013 +0200
+++ b/Python/fileutils.c	Sun Jul 07 16:35:54 2013 +0200
@@ -201,7 +201,7 @@
     unsigned char *in;
     wchar_t *out;
 
-    res = PyMem_Malloc((strlen(arg)+1)*sizeof(wchar_t));
+    res = PyMem_RawMalloc((strlen(arg)+1)*sizeof(wchar_t));
     if (!res)
         return NULL;