8000 [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
[go: up one dir, main page]

Skip to content
< 8000 div id="partial-discussion-header" class="gh-header mb-3 js-details-container Details js-socket-channel js-updatable-content pull request js-pull-header-details" data-channel="eyJjIjoicHVsbF9yZXF1ZXN0OjExMjIwMjg3NDAiLCJ0IjoxNzUyNTgyMzg4fQ==--3ab5bc3d9d2233b46422695b3c5adf2494a17750e9fda0d8f7df1ed07a287cc0" data-url="/python/cpython/pull/99493/partials/title?sticky=false" data-channel-event-name="title_updated" data-pull-is-open="false" data-gid="PR_kwDOBN0Z8c5C4MzE">

[3.9] gh-87604: Avoid publishing list of active per-interpreter audit hooks via the gc module (GH-99373) #99493

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 21, 2022
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
0