auto merge of #6397 : cantsin/rust/rusti-fixes, r=catamorphism
Fixes #6378 Don't pass the binary name to the LLVMRustExecuteJIT closure, otherwise it will leak memory; the binary name doesn't seem to be needed, anyhow.
This commit is contained in:
commit
8ca64a423b
@ -157,9 +157,9 @@ pub mod jit {
|
||||
code: entry,
|
||||
env: ptr::null()
|
||||
};
|
||||
let func: &fn(argv: ~[@~str]) = cast::transmute(closure);
|
||||
let func: &fn() = cast::transmute(closure);
|
||||
|
||||
func(~[sess.opts.binary]);
|
||||
func();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user