https://github.com/python/cpython/commit/47485c03843e0a1b0bb8d55d260cd5e5ca08dbe9
commit: 47485c03843e0a1b0bb8d55d260cd5e5ca08dbe9
branch: main
author: Victor Stinner <[email protected]>
committer: encukou <[email protected]>
date: 2025-09-19T09:30:11Z
summary:
gh-129813, PEP 782: Fix refleak in sock_recvfrom() (GH-139151)
files:
M Modules/socketmodule.c
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index 8be06bddf3d08a..92e6be68192dcc 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -4191,6 +4191,7 @@ sock_recvfrom(PyObject *self, PyObject *args)
}
ret = PyTuple_Pack(2, buf, addr);
+ Py_DECREF(buf);
finally:
Py_XDECREF(addr);
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]