Skip to content
Merged
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
C style
  • Loading branch information
gaogaotiantian committed Feb 25, 2025
commit c22ba6b3b89d6fd92a29976c6f662454d0edb79c
6 changes: 4 additions & 2 deletions Objects/frameobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ framelocalsproxy_getkeyindex(PyFrameObject *frame, PyObject *key, bool read, PyO
if (value != NULL) {
if (value_ptr != NULL) {
*value_ptr = value;
} else {
}
else {
Py_DECREF(value);
}
return i;
Expand Down Expand Up @@ -155,7 +156,8 @@ framelocalsproxy_getkeyindex(PyFrameObject *frame, PyObject *key, bool read, PyO
if (value != NULL) {
if (value_ptr != NULL) {
*value_ptr = value;
} else {
}
else {
Py_DECREF(value);
}
return i;
Expand Down