From a0668c1c9cab8836cbb4b3560451e40c55f98d27 Mon Sep 17 00:00:00 2001 From: Jason Paryani Date: Thu, 13 Feb 2014 22:25:25 -0800 Subject: [PATCH] Revert memleak fix since it's causing failures on TravisCI --- capnp/lib/capnp.pyx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/capnp/lib/capnp.pyx b/capnp/lib/capnp.pyx index d486008..eaf5880 100644 --- a/capnp/lib/capnp.pyx +++ b/capnp/lib/capnp.pyx @@ -1775,6 +1775,11 @@ cdef class TwoPartyClient: self._restorer = _convert_restorer(restorer) self.thisptr = new RpcSystem(makeRpcClientWithRestorer(deref(self._network.thisptr), deref(self._restorer.thisptr))) + Py_INCREF(self._restorer) + Py_INCREF(self._orig_stream) + Py_INCREF(self._stream) + Py_INCREF(self._network) # TODO:MEMORY: attach this to onDrained, also figure out what's leaking + def __dealloc__(self): del self.thisptr