From a73395e7bb100c5bcf2abea3d60b4a515d63c6d6 Mon Sep 17 00:00:00 2001 From: Yuval Katsnelson Date: Wed, 6 Dec 2017 10:48:38 +0200 Subject: [PATCH 1/2] Fixed Python object leak in RemotePromise --- capnp/lib/capnp.pyx | 3 --- 1 file changed, 3 deletions(-) diff --git a/capnp/lib/capnp.pyx b/capnp/lib/capnp.pyx index 864993a..441f67a 100644 --- a/capnp/lib/capnp.pyx +++ b/capnp/lib/capnp.pyx @@ -1958,9 +1958,6 @@ cdef class _RemotePromise: if args_length - defaults_length != 1: raise KjException('Function passed to `then` call must take exactly one argument') - Py_INCREF(func) - Py_INCREF(error_func) - cdef Promise new_promise = Promise()._init(helpers.then(deref(self.thisptr), func, error_func), self) return Promise()._init(new_promise.thisptr.attach(capnp.makePyRefCounter(func), capnp.makePyRefCounter(error_func)), new_promise) From 74618de3efab0dd44e12156c3613f751cb57aa7d Mon Sep 17 00:00:00 2001 From: Yuval Katsnelson Date: Wed, 6 Dec 2017 10:49:09 +0200 Subject: [PATCH 2/2] Update bundled capnp to 0.6.1 --- buildutils/bundle.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildutils/bundle.py b/buildutils/bundle.py index 7f7e483..b0e7f0e 100644 --- a/buildutils/bundle.py +++ b/buildutils/bundle.py @@ -35,7 +35,7 @@ pjoin = os.path.join # Constants #----------------------------------------------------------------------------- -bundled_version = (0,6,0) +bundled_version = (0,6,1) libcapnp = "capnproto-c++-%i.%i.%i.tar.gz" % (bundled_version) libcapnp_url = "https://capnproto.org/" + libcapnp