Skip to content

Commit

Permalink
[3.12] pythongh-119821: Fix refleak in LOAD_FROM_DICT_OR_GLOBALS
Browse files Browse the repository at this point in the history
  • Loading branch information
JelleZijlstra committed Jun 3, 2024
1 parent 6bc470c commit 0589ac0
Show file tree
Hide file tree
Showing 2 changed files with 295 additions and 291 deletions.
2 changes: 2 additions & 0 deletions Python/bytecodes.c
Original file line number Diff line number Diff line change
Expand Up @@ -1209,6 +1209,7 @@ dummy_func(
format_exc_check_arg(tstate, PyExc_NameError,
NAME_ERROR_MSG, name);
}
Py_DECREF(mod_or_class_dict);
ERROR_IF(true, error);
}
Py_INCREF(v);
Expand All @@ -1230,6 +1231,7 @@ dummy_func(
tstate, PyExc_NameError,
NAME_ERROR_MSG, name);
}
Py_DECREF(mod_or_class_dict);
ERROR_IF(true, error);
}
}
Expand Down
Loading

0 comments on commit 0589ac0

Please sign in to comment.