Skip to content

Commit 47485c0

Browse files
authored
gh-129813, PEP 782: Fix refleak in sock_recvfrom() (GH-139151)
1 parent 495f589 commit 47485c0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Modules/socketmodule.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4191,6 +4191,7 @@ sock_recvfrom(PyObject *self, PyObject *args)
41914191
}
41924192

41934193
ret = PyTuple_Pack(2, buf, addr);
4194+
Py_DECREF(buf);
41944195

41954196
finally:
41964197
Py_XDECREF(addr);

0 commit comments

Comments
 (0)