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

vstinner webhook-mailer at python.org
Tue Mar 9 06:17:07 EST 2021


https://github.com/python/cpython/commit/0d6bd1ca7c683137d52041194f3a2b02219f225a
commit: 0d6bd1ca7c683137d52041194f3a2b02219f225a
branch: master
author: Victor Stinner <vstinner at python.org>
committer: vstinner <vstinner at python.org>
date: 2021-03-09T12:16:42+01:00
summary:

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

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

diff --git a/Doc/c-api/memory.rst b/Doc/c-api/memory.rst
index 588668ee853c6..d2d212b25d7ec 100644
--- a/Doc/c-api/memory.rst
+++ b/Doc/c-api/memory.rst
@@ -555,7 +555,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