Package: python-eunuchs
Version: 20050320.1-0.1

There seems to be a bug in recvmsg reference counting meaning that eunuchs leaks about 200 bytes for each packet received. Following patch seems to fix this leak.

--
Valtteri
--- recvmsg.c.orig      2007-01-29 17:57:40.000000000 +0200
+++ recvmsg.c   2007-01-29 17:58:32.000000000 +0200
@@ -91,12 +91,13 @@
        free(iov[0].iov_base);
        return NULL;
       }
+      Py_DECREF(entry);
     }
   }
 
   {
     PyObject *r;
-    r = Py_BuildValue("s#(si)iO",
+    r = Py_BuildValue("s#(si)iN",
                      iov[0].iov_base, ret,
                      inet_ntoa(sa.sin_addr), ntohs(sa.sin_port),
                      msg.msg_flags,

Reply via email to