summaryrefslogtreecommitdiffstats
path: root/Modules/socketmodule.c
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-06-08 05:12:45 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2006-06-08 05:12:45 (GMT)
commitf0cab1f6e2037ce6543c6de0cb66e5f7401a4f7b (patch)
tree176ad7be27f74a2d42634aa708f5778e40f3c15b /Modules/socketmodule.c
parentec0d6f83cde151bff3fa9761758c3832ac1831db (diff)
downloadcpython-f0cab1f6e2037ce6543c6de0cb66e5f7401a4f7b.zip
cpython-f0cab1f6e2037ce6543c6de0cb66e5f7401a4f7b.tar.gz
cpython-f0cab1f6e2037ce6543c6de0cb66e5f7401a4f7b.tar.bz2
Fix a refleak in recvfrom_into
Diffstat (limited to 'Modules/socketmodule.c')
-rw-r--r--Modules/socketmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index 0322a06..262abe8 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -2478,7 +2478,7 @@ sock_recvfrom_into(PySocketSockObject *s, PyObject *args, PyObject* kwds)
/* Return the number of bytes read and the address. Note that we do
not do anything special here in the case that readlen < recvlen. */
- return Py_BuildValue("lO", readlen, addr);
+ return Py_BuildValue("lN", readlen, addr);
}
PyDoc_STRVAR(recvfrom_into_doc,