Skip to content

Comments

Fix memory leak in _DynamicCapabilityClient._send_helper()#398

Open
ed-tsn wants to merge 1 commit intocapnproto:masterfrom
ed-tsn:fix/send-helper-memory-leak
Open

Fix memory leak in _DynamicCapabilityClient._send_helper()#398
ed-tsn wants to merge 1 commit intocapnproto:masterfrom
ed-tsn:fix/send-helper-memory-leak

Conversation

@ed-tsn
Copy link

@ed-tsn ed-tsn commented Feb 12, 2026

The heap-allocated Request object was never freed after send().
Each RPC call leaked ~72 bytes, growing linearly with usage.

Added del request after request.send() to free the Request once
the RemotePromise has been constructed.

@ed-tsn
Copy link
Author

ed-tsn commented Feb 12, 2026

  The heap-allocated Request object was never freed after send().
  Each RPC call leaked ~72 bytes, growing linearly with usage.

  Added del request after request.send() to free the Request once
  the RemotePromise has been constructed.
@ed-tsn ed-tsn force-pushed the fix/send-helper-memory-leak branch from 938e33e to 1c7f800 Compare February 13, 2026 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant