Skip to content

Commit 047b420

Browse files
Explictly drop instead of relying on RAII. (#2144)
1 parent 996e92f commit 047b420

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/backend/src/codegen.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ impl ToTokens for ast::Struct {
213213
#[doc(hidden)]
214214
#[allow(clippy::all)]
215215
pub unsafe extern "C" fn #free_fn(ptr: u32) {
216-
<#name as wasm_bindgen::convert::FromWasmAbi>::from_abi(ptr);
216+
drop(<#name as wasm_bindgen::convert::FromWasmAbi>::from_abi(ptr));
217217
}
218218

219219
#[allow(clippy::all)]

0 commit comments

Comments
 (0)