We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72e2865 commit b0934a1Copy full SHA for b0934a1
1 file changed
platform/src/main.rs
@@ -12,9 +12,10 @@ fn main() {
12
13
let out = host::call_the_closure(buffer);
14
15
- println!("This print statement fixes a segfault.");
16
-
17
- std::alloc::dealloc(buffer, layout);
+ // TODO: deallocation currently causes a segfault (probably because layout doesn't match main's size).
+ // investigate why this is and then re-enable this, rather than letting the system clean up the memory.
+ //
18
+ // std::alloc::dealloc(buffer, layout);
19
20
std::process::exit(out);
21
}
0 commit comments