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
Update Modules/atexitmodule.c
Co-authored-by: Victor Stinner <vstinner@python.org>
  • Loading branch information
pablogsal and vstinner authored Dec 9, 2021
commit ebc949b79da4b1d80931da828fd2aa3d912543f2
2 changes: 1 addition & 1 deletion Modules/atexitmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ atexit_callfuncs(struct atexit_state *state)
continue;
}

// Increment the refcount of cb->func as the call itself may unregister it
// bpo-46025: Increment the refcount of cb->func as the call itself may unregister it
PyObject* the_func = cb->func;
Py_INCREF(the_func);
PyObject *res = PyObject_Call(cb->func, cb->args, cb->kwargs);
Expand Down