Visitar URL original
[3.9] gh-87604: Avoid publishing list of active per-interpreter audit hooks via the gc module (GH-99373) by zooba · Pull Request #99493 · python/cpython · GitHub
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
Fix variable name
  • Loading branch information
zooba committed Nov 14, 2022
commit 9fd2fae92b17b39e574b8bda165fcb664a3168ef
2 changes: 1 addition & 1 deletion Python/sysmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ sys_addaudithook_impl(PyObject *module, PyObject *hook)
return NULL;
}
/* Avoid having our list of hooks show up in the GC module */
PyObject_GC_UnTrack(interp->audit_hooks);
PyObject_GC_UnTrack(is->audit_hooks);
}

if (PyList_Append(is->audit_hooks, hook) < 0) {
Expand Down