https://github.com/python/cpython/commit/634c1d294b4edf864d0bd80fa3daeef5d4d8b9c2
commit: 634c1d294b4edf864d0bd80fa3daeef5d4d8b9c2
branch: 3.15
author: Miss Islington (bot) <[email protected]>
committer: methane <[email protected]>
date: 2026-10-28T02:53:48Z
summary:

Doc: Fix allocator mismatch in `PyStatus` example (GH-160757)

(cherry picked from commit 495fef1b4719be2f46dfe1409097cb91d770e56a)

Co-authored-by: Inada Naoki <[email protected]>

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

diff --git a/Doc/c-api/init_config.rst b/Doc/c-api/init_config.rst
index 9774ec8784921e..b59e2b8205d304 100644
--- a/Doc/c-api/init_config.rst
+++ b/Doc/c-api/init_config.rst
@@ -831,7 +831,7 @@ Example::
         if (PyStatus_Exception(status)) {
             Py_ExitStatusException(status);
         }
-        PyMem_Free(ptr);
+        PyMem_RawFree(ptr);
         return 0;
     }
 

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to