Skip to content

Commit

Permalink
add forgotten allocation stats clear
Browse files Browse the repository at this point in the history
  • Loading branch information
ValeryAntopol committed Dec 6, 2023
1 parent f158def commit 46e957a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions marine/src/marine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,13 @@ impl<WB: WasmBackend> Marine<WB> {
*cp = call_parameters;
}

self.core
let result = self.core
.call(module_name, func_name, args)
.map_err(|e| check_for_oom_and_convert_error(&self.core, e))
.map_err(|e| check_for_oom_and_convert_error(&self.core, e))?;

self.core.clear_allocation_stats();

Ok(result)
}

/// Call a specified function of loaded on a startup module by its name.
Expand Down

0 comments on commit 46e957a

Please sign in to comment.