about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-05-11 14:04:44 -0700
committerbors <bors@rust-lang.org>2013-05-11 14:04:44 -0700
commit8ca64a423bea5dd9f4149fe343f7cec87e25316c (patch)
treeeee9805cfdbd1218d7e5d06b9c5365446ff9b3f3
parent957251817bb78f1f0e2f9e6efdb827b43c773ac4 (diff)
parent3db74ddd2e0ec7ea02ac1b82745439587f514cc4 (diff)
downloadrust-8ca64a423bea5dd9f4149fe343f7cec87e25316c.tar.gz
rust-8ca64a423bea5dd9f4149fe343f7cec87e25316c.zip
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.
-rw-r--r--src/librustc/back/link.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc/back/link.rs b/src/librustc/back/link.rs
index db41d9ad926..0e2739e40a9 100644
--- a/src/librustc/back/link.rs
+++ b/src/librustc/back/link.rs
@@ -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();
             }
         }
     }