diff --git a/capnp/lib/capnp.pyx b/capnp/lib/capnp.pyx index 538c46f..b5347f4 100644 --- a/capnp/lib/capnp.pyx +++ b/capnp/lib/capnp.pyx @@ -2320,7 +2320,9 @@ cdef class _DynamicCapabilityClient: self._set_fields(request, name, args, kwargs) - return _RemotePromise()._init(request.send(), self) + cdef _RemotePromise result = _RemotePromise()._init(request.send(), self) + del request + return result cpdef _request_helper(self, name, firstSegmentWordSize, args, kwargs): # if word_count is None: