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
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue