Skip to content
Snippets Groups Projects

Pointer and memory cleanup in FFI layer

Merged Julia Andrews requested to merge rust-ffi-pointers into rustrpc
  • Fix small memory leak: store callback object in a Pin<Box<_>> in the Server struct, rather than a raw pointer.
  • Remove several muts to avoid breaking aliasing rules.
  • Change FFI function parameters to take pointers to callback targets, rather than pointers-as-ints.

Merge request reports

Approval is optional

Merged by Richard T. Carback IIIRichard T. Carback III 6 months ago (Jul 26, 2024 4:22pm UTC)

Merge details

  • Changes merged into rustrpc with e2be554e.
  • Deleted the source branch.

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading