8000 GH-104584: Fix refleak when tracing through calls by brandtbucher · Pull Request #110593 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

GH-104584: Fix refleak when tracing through calls #110593

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 3 commits into from
Oct 10, 2023
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
Next Next commit
_PyFunction_LookupByVersion returns a borrowed ref
  • Loading branch information
brandtbucher committed Oct 10, 2023
commit da57eed349d43d00e0fdb49a5c953c8d4b69f28d
2 changes: 1 addition & 1 deletion Objects/funcobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ _PyFunction_LookupByVersion(uint32_t version)
PyFunctionObject *func = interp->func_state.func_version_cache[
version % FUNC_VERSION_CACHE_SIZE];
if (func != NULL && func->func_version == version) {
return (PyFunctionObject *)Py_NewRef(func);
return func;
}
return NULL;
}
Expand Down
0