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

Loading
Loading

Activity

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