Skip to content

Commit 634c1d2

Browse files
Doc: Fix allocator mismatch in PyStatus example (GH-160757)
(cherry picked from commit 495fef1) Co-authored-by: Inada Naoki <songofacandy@gmail.com>
1 parent e60e7bd commit 634c1d2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Doc/c-api/init_config.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -831,7 +831,7 @@ Example::
831831
if (PyStatus_Exception(status)) {
832832
Py_ExitStatusException(status);
833833
}
834-
PyMem_Free(ptr);
834+
PyMem_RawFree(ptr);
835835
return 0;
836836
}
837837

0 commit comments

Comments
 (0)