We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
queuemodule.c
1 parent c23dd52 commit b6d1377Copy full SHA for b6d1377
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