]> granicus.if.org Git - python/commitdiff
Fix a refleak in recvfrom_into
authorNeal Norwitz <nnorwitz@gmail.com>
Thu, 8 Jun 2006 05:12:45 +0000 (05:12 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Thu, 8 Jun 2006 05:12:45 +0000 (05:12 +0000)
Modules/socketmodule.c

index 0322a061a6e7de4cf212faf49a91dbe718161782..262abe8f534623474a5d9fd798f14850ea629f37 100644 (file)
@@ -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,