From a044f8ec3786fec8521e8f2e015a36b4a4513115 Mon Sep 17 00:00:00 2001 From: Sean McBride Date: Thu, 16 Dec 2021 10:02:19 -0500 Subject: [PATCH] fix: redundant wasm memory wipe --- runtime/include/module.h | 1 - 1 file changed, 1 deletion(-) diff --git a/runtime/include/module.h b/runtime/include/module.h index 5ca8440..37747f2 100644 --- a/runtime/include/module.h +++ b/runtime/include/module.h @@ -203,7 +203,6 @@ module_allocate_linear_memory(struct module *module) static inline void module_free_linear_memory(struct module *module, struct wasm_memory *memory) { - wasm_memory_wipe(memory); wasm_memory_reinit(memory, module->abi.starting_pages * WASM_PAGE_SIZE); wasm_memory_pool_add_nolock(&module->pools[worker_thread_idx].memory, memory); }