]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-150042: queue.SimpleQueue.put: fix minor refleak. (GH-150043)
authorlarryhastings <larry@hastings.org>
Tue, 19 May 2026 22:27:04 +0000 (15:27 -0700)
committerGitHub <noreply@github.com>
Tue, 19 May 2026 22:27:04 +0000 (00:27 +0200)
commit79088e0d82931c21fa72eadc416a18b7b0fdf9c1
tree3fe6b24290564fffc003d043f038dd99f8b43c21
parentd095ceb0f420a22353271a8adaf5a83433d018e5
gh-150042: queue.SimpleQueue.put: fix minor refleak. (GH-150043)

If queue.SimpleQueue.put can't handoff the item to a
waiting thread, and fails to allocate memory when adding
the item to a ringbuf, it would leak a reference.  Fixed.
Misc/NEWS.d/next/Core_and_Builtins/2026-05-18-16-54-54.gh-issue-150042.LSr5W8.rst [new file with mode: 0644]
Modules/_queuemodule.c