Skip to content

gh-159739: Release resources on interpreter startup error paths - #159752

Merged
gpshead merged 1 commit into
python:mainfrom
jelle-openai:jelle/codex/gh-159739-startup-cleanup
Oct 19, 2026
Merged

gpshead merged 1 commit into
python:mainfrom
jelle-openai:jelle/codex/gh-159739-startup-cleanup

Conversation

@jelle-openai

@jelle-openai jelle-openai commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Release path-file read buffers on early return and the command string
when an audit hook rejects execution.

Release path-file read buffers on early return and the command string
when an audit hook rejects execution.

Backport to 3.15 and 3.14.
@gpshead
gpshead enabled auto-merge (squash) October 19, 2026 20:33
@gpshead
gpshead merged commit 36f7c13 into python:main Oct 19, 2026
66 checks passed
@miss-islington-app

Copy link
Copy Markdown

Thanks @jelle-openai for the PR, and @gpshead for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14, 3.15.
🐍🍒⛏🤖

@bedevere-app

bedevere-app Bot commented Oct 19, 2026

Copy link
Copy Markdown

GH-159793 is a backport of this pull request to the 3.15 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.15 bugs and security fixes label Oct 19, 2026
@bedevere-app

bedevere-app Bot commented Oct 19, 2026

Copy link
Copy Markdown

GH-159794 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Oct 19, 2026
gpshead pushed a commit that referenced this pull request Oct 19, 2026
GH-159752) (#159793)

gh-159739: Release resources on interpreter startup error paths (GH-159752)

Release path-file read buffers on early return and the command string
when an audit hook rejects execution.

Backport to 3.15 and 3.14.
(cherry picked from commit 36f7c13)

Co-authored-by: Jelle Zijlstra <jelle@openai.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants