Skip to content
Snippets Groups Projects
user avatar
Bastian Köcher authored
* Fix memory leak in runtime interface

We used `slice::from_raw_parts` in runtime-interface which did not free
the memory afterwards. This pr changes it to `Vec::from_raw_parts` to
make sure `drop` is called properly and the values are freed.

* Check that `len` is non-zero

* Adds comment
c7867e51
Name Last commit Last update
..
host.rs
impls.rs
lib.rs
pass_by.rs
util.rs
wasm.rs