[Python-checkins] cpython: Issue #18203: Fix decode_ascii_surrogateescape(), use PyMem_RawMalloc() as

victor.stinner python-checkins at python.org
Sun Jul 7 16:36:09 CEST 2013


http://hg.python.org/cpython/rev/fc01f9497da7
changeset:   84493:fc01f9497da7
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Sun Jul 07 16:35:54 2013 +0200
summary:
  Issue #18203: Fix decode_ascii_surrogateescape(), use PyMem_RawMalloc() as _Py_char2wchar()

files:
  Python/fileutils.c |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Python/fileutils.c b/Python/fileutils.c
--- a/Python/fileutils.c
+++ b/Python/fileutils.c
@@ -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;
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list