We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
queuemodule.c
1 parent 26d587b commit 1a73d5aCopy full SHA for 1a73d5a
1 file changed
Modules/_queuemodule.c
@@ -165,6 +165,7 @@ RingBuf_Put(RingBuf *buf, PyObject *item)
165
// Buffer is full, grow it.
166
if (resize_ringbuf(buf, buf->items_cap * 2) < 0) {
167
PyErr_NoMemory();
168
+ Py_DECREF(item);
169
return -1;
170
}
171
0 commit comments