]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.15] gh-150042: queue.SimpleQueue.put: fix minor refleak. (GH-150043) (GH-150127)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 20 May 2026 00:46:42 +0000 (02:46 +0200)
committerGitHub <noreply@github.com>
Wed, 20 May 2026 00:46:42 +0000 (02:46 +0200)
commitd6dda0d23c4a2c7db360235b2198c8f18e0f5596
tree31107f83ea098bc40fdb3a4a1357fc1b30a0d14a
parentde401ef6a5fc9d064ec89d6ee15844af95d4fbe8
[3.15] gh-150042: queue.SimpleQueue.put: fix minor refleak. (GH-150043) (GH-150127)

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.
(cherry picked from commit 79088e0d82931c21fa72eadc416a18b7b0fdf9c1)

Co-authored-by: larryhastings <larry@hastings.org>
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