mirror of
https://github.com/python/cpython.git
synced 2025-11-01 14:11:41 +00:00
gh-129813, PEP 782: Fix refleak in sock_recvfrom() (GH-139151)
This commit is contained in:
parent
495f589363
commit
47485c0384
1 changed files with 1 additions and 0 deletions
|
|
@ -4191,6 +4191,7 @@ sock_recvfrom(PyObject *self, PyObject *args)
|
|||
}
|
||||
|
||||
ret = PyTuple_Pack(2, buf, addr);
|
||||
Py_DECREF(buf);
|
||||
|
||||
finally:
|
||||
Py_XDECREF(addr);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue