Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Clear borrowed reference in example
  • Loading branch information
ncoghlan committed Jun 2, 2024
commit 71a80245a86ce20ebb0ad9c30cfe003cba6556ba
1 change: 1 addition & 0 deletions peps/pep-0667.rst
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ In these cases, the original code should be replaced with::
goto error_handler;
}
locals = PyFrame_GetLocals(frame);
frame = NULL; // Minimise visibility of borrowed reference
if (locals == NULL) {
goto error_handler;
}
Expand Down