Skip to content

Commit 495fef1

Browse files
authored
Doc: Fix allocator mismatch in PyStatus example (#160757)
1 parent d824240 commit 495fef1

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
@@ -840,7 +840,7 @@ Example::
840840
if (PyStatus_Exception(status)) {
841841
Py_ExitStatusException(status);
842842
}
843-
PyMem_Free(ptr);
843+
PyMem_RawFree(ptr);
844844
return 0;
845845
}
846846

0 commit comments

Comments
 (0)