From 22fabe218d3d6d0198075bcd8d1e1ddf821102c1 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Wed, 11 Feb 2015 18:17:56 +0100 Subject: [PATCH] Fix typo: PyMem_Alloc => PyMem_Malloc --- Include/unicodeobject.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Include/unicodeobject.h b/Include/unicodeobject.h index 729f5848163..d7b2acebdec 100644 --- a/Include/unicodeobject.h +++ b/Include/unicodeobject.h @@ -1052,7 +1052,7 @@ PyAPI_FUNC(Py_ssize_t) PyUnicode_AsWideChar( always ends with a nul character. If size is not NULL, write the number of wide characters (excluding the null character) into *size. - Returns a buffer allocated by PyMem_Alloc() (use PyMem_Free() to free it) + Returns a buffer allocated by PyMem_Malloc() (use PyMem_Free() to free it) on success. On error, returns NULL, *size is undefined and raises a MemoryError. */