mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-27 15:41:33 +00:00
Add probable fix of memory leak in trampoline code
This commit is contained in:
@ -61,7 +61,7 @@ pub unsafe extern "C" fn wasmer_trampoline_buffer_builder_build(
|
||||
#[allow(clippy::cast_ptr_alignment)]
|
||||
pub unsafe extern "C" fn wasmer_trampoline_buffer_destroy(buffer: *mut wasmer_trampoline_buffer_t) {
|
||||
if !buffer.is_null() {
|
||||
Box::from_raw(buffer);
|
||||
Box::from_raw(buffer as *mut TrampolineBuffer);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user