From: Victor Stinner Date: Sun, 7 Jul 2013 14:35:54 +0000 (+0200) Subject: Issue #18203: Fix decode_ascii_surrogateescape(), use PyMem_RawMalloc() as _Py_char2w... X-Git-Tag: v3.4.0a1~301 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=65bf9cf26fee75dbe7e00f01e236bc5107a09a40;p=python Issue #18203: Fix decode_ascii_surrogateescape(), use PyMem_RawMalloc() as _Py_char2wchar() --- diff --git a/Python/fileutils.c b/Python/fileutils.c index 7880ab0393..698385504c 100644 --- a/Python/fileutils.c +++ b/Python/fileutils.c @@ -201,7 +201,7 @@ decode_ascii_surrogateescape(const char *arg, size_t *size) 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;