gh-145376: Fix refleak in _queuemodule.c out-of-memory path by eendebakpt · Pull Request #145543 · python/cpython · GitHub
Skip to content

gh-145376: Fix refleak in _queuemodule.c out-of-memory path - #145543

Merged
kumaraditya303 merged 1 commit into
python:mainfrom
eendebakpt:refleak_queuemodule
Mar 7, 2026
Merged

kumaraditya303 merged 1 commit into
python:mainfrom
eendebakpt:refleak_queuemodule

Conversation

@eendebakpt

@eendebakpt eendebakpt commented Mar 5, 2026

Copy link
Copy Markdown
Contributor

@eendebakpt eendebakpt changed the title gh-145376: Fix refleak in _queuemodule.c gh-145376: Fix refleak in _queuemodule.c out-of-memory path Mar 5, 2026

@vstinner vstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. The RingBuf_Put() comment says "Steals a reference to item".

@kumaraditya303
kumaraditya303 merged commit 0aeaaaf into python:main Mar 7, 2026
56 checks passed
@kumaraditya303 kumaraditya303 added needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes labels Mar 7, 2026
@miss-islington-app

Copy link
Copy Markdown

@miss-islington-app

Copy link
Copy Markdown

Thanks @eendebakpt for the PR, and @kumaraditya303 for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Mar 7, 2026
…ythonGH-145543)

(cherry picked from commit 0aeaaaf)

Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Mar 7, 2026
…ythonGH-145543)

(cherry picked from commit 0aeaaaf)

Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com>
@bedevere-app

bedevere-app Bot commented Mar 7, 2026

Copy link
Copy Markdown

GH-145621 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.13 bugs and security fixes label Mar 7, 2026
@bedevere-app

bedevere-app Bot commented Mar 7, 2026

Copy link
Copy Markdown

GH-145622 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 Mar 7, 2026
@bedevere-bot

Copy link
Copy Markdown

kumaraditya303 pushed a commit that referenced this pull request Mar 8, 2026
…H-145543) (#145621)

gh-145376: Fix refleak in `queuemodule.c` out-of-memory path (GH-145543)
(cherry picked from commit 0aeaaaf)

Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com>
kumaraditya303 pushed a commit that referenced this pull request Mar 8, 2026
…H-145543) (#145622)

gh-145376: Fix refleak in `queuemodule.c` out-of-memory path (GH-145543)
(cherry picked from commit 0aeaaaf)

Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com>
@eendebakpt
eendebakpt deleted the refleak_queuemodule branch March 19, 2026 21:39
ljfp pushed a commit to ljfp/cpython that referenced this pull request Apr 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants