FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[3.13] gh-145376: Fix refleak in `queuemodule.c` out-of-memory path (GH-145543) by miss-islington · Pull Request #145621 · python/cpython · GitHub

Repository navigation

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .c  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
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>
  • Loading branch information
eendebakpt authored and miss-islington committed Mar 7, 2026
commit 64ea1e0eaa45e686faa028e6d40461cba85b22f4
1 change: 1 addition & 0 deletions Modules/_queuemodule.c
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ RingBuf_Put(RingBuf *buf, PyObject *item)
// Buffer is full, grow it.
if (resize_ringbuf(buf, buf->items_cap * 2) < 0) {
PyErr_NoMemory();
Py_DECREF(item);
return -1;
}
}
Expand Down
Loading

Back | FazBrowse Home | New Git URL