[Python-checkins] bpo-3329: Fix typo in PyObjectArenaAllocator doc (GH-24795)

miss-islington webhook-mailer at python.org
Tue Mar 9 06:27:31 EST 2021


https://github.com/python/cpython/commit/5ca02c4799c07dba5192f87f9f2378dc24097166
commit: 5ca02c4799c07dba5192f87f9f2378dc24097166
branch: 3.8
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2021-03-09T03:27:19-08:00
summary:

bpo-3329: Fix typo in PyObjectArenaAllocator doc (GH-24795)

(cherry picked from commit 0d6bd1ca7c683137d52041194f3a2b02219f225a)

Co-authored-by: Victor Stinner <vstinner at python.org>

files:
M Doc/c-api/memory.rst

diff --git a/Doc/c-api/memory.rst b/Doc/c-api/memory.rst
index 87425bcf1e71f..91b901d726e61 100644
--- a/Doc/c-api/memory.rst
+++ b/Doc/c-api/memory.rst
@@ -516,7 +516,7 @@ Customize pymalloc Arena Allocator
    +--------------------------------------------------+---------------------------------------+
    | ``void* alloc(void *ctx, size_t size)``          | allocate an arena of size bytes       |
    +--------------------------------------------------+---------------------------------------+
-   | ``void free(void *ctx, size_t size, void *ptr)`` | free an arena                         |
+   | ``void free(void *ctx, void *ptr, size_t size)`` | free an arena                         |
    +--------------------------------------------------+---------------------------------------+
 
 .. c:function:: void PyObject_GetArenaAllocator(PyObjectArenaAllocator *allocator)



More information about the Python-checkins mailing list