Skip to content

Commit 8ca64a4

Browse files
committed
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.
2 parents 9572518 + 3db74dd commit 8ca64a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc/back/link.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,9 @@ pub mod jit {
157157
code: entry,
158158
env: ptr::null()
159159
};
160-
let func: &fn(argv: ~[@~str]) = cast::transmute(closure);
160+
let func: &fn() = cast::transmute(closure);
161161

162-
func(~[sess.opts.binary]);
162+
func();
163163
}
164164
}
165165
}

0 commit comments

Comments
 (0)