mirror of
https://github.com/capnproto/pycapnp.git
synced 2025-03-04 16:35:04 +01:00
Fix memleak in RemotePromise.wait
This commit is contained in:
parent
e26452e4a7
commit
f5bd65bf7b
1 changed files with 1 additions and 1 deletions
|
@ -1322,7 +1322,7 @@ cdef class _RemotePromise:
|
|||
if self.is_consumed:
|
||||
raise ValueError('Promise was already used in a consuming operation. You can no longer use this Promise object')
|
||||
|
||||
ret = _DynamicStructReader()._init(self.thisptr.wait(), self._parent)
|
||||
ret = _Response()._init_child(self.thisptr.wait(), self._parent)
|
||||
self.is_consumed = True
|
||||
|
||||
return ret
|
||||
|
|
Loading…
Add table
Reference in a new issue