diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2013-07-07 14:35:54 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2013-07-07 14:35:54 (GMT) |
commit | 65bf9cf26fee75dbe7e00f01e236bc5107a09a40 (patch) | |
tree | 161b9e7d74b0112ef976bf5507c52890c2bf632e /Python/fileutils.c | |
parent | 6ce0dbf460d430b664a868ed1735b0b590f70bc3 (diff) | |
download | cpython-65bf9cf26fee75dbe7e00f01e236bc5107a09a40.zip cpython-65bf9cf26fee75dbe7e00f01e236bc5107a09a40.tar.gz cpython-65bf9cf26fee75dbe7e00f01e236bc5107a09a40.tar.bz2 |
Issue #18203: Fix decode_ascii_surrogateescape(), use PyMem_RawMalloc() as _Py_char2wchar()
Diffstat (limited to 'Python/fileutils.c')
-rw-r--r-- | Python/fileutils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/fileutils.c b/Python/fileutils.c index 7880ab0..6983855 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; |