https://github.com/python/cpython/commit/b241d5e8d48336a0f132140576f6da324a4b7f42 commit: b241d5e8d48336a0f132140576f6da324a4b7f42 branch: 3.14 author: Miss Islington (bot) <[email protected]> committer: methane <[email protected]> date: 2026-10-28T02:54:50Z 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 3c3edb68f1f638..edf6039b20ee5f 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]
