Skip to content

Pointer and memory cleanup in FFI layer

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