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:
bors 2013-05-11 14:04:44 -07:00
commit 8ca64a423b

View File

@ -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();
}
}
}