Skip to content
Prev Previous commit
Next Next commit
Don't reduce ref count for memobj in _bufferedwriter_raw_write
  • Loading branch information
furkanonder committed Jul 22, 2023
commit 1809a2ac371726d24a522e948f51727fc9dca8fd
1 change: 0 additions & 1 deletion Modules/_io/bufferedio.c
Original file line number Diff line number Diff line change
Expand Up @@ -1933,7 +1933,6 @@ _bufferedwriter_raw_write(buffered *self, char *start, Py_ssize_t len)
PyErr_Fetch(&exc, &val, &tb);
release_res = PyObject_CallMethod(memobj, "release", NULL);
_PyErr_ChainExceptions(exc, val, tb);
Py_DECREF(memobj);
if (release_res == NULL) {
Py_XDECREF(res);
return -1;
Expand Down