about summary refs log tree commit diff
path: root/src/librustc/lib
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-01-01 13:03:26 -0800
committerAlex Crichton <alex@alexcrichton.com>2014-01-01 13:20:00 -0800
commitdd33b145f3ec0806adec2ca5c9cfb5ccf297bd34 (patch)
tree160712eeda71bde4cb72e83b2b6845c170881b01 /src/librustc/lib
parentc34ef5d7e4f44f8e65600a2c3866f5861c401ea1 (diff)
downloadrust-dd33b145f3ec0806adec2ca5c9cfb5ccf297bd34.tar.gz
rust-dd33b145f3ec0806adec2ca5c9cfb5ccf297bd34.zip
Fix usage of rustc --ls on invalid files
Closes #11259
Diffstat (limited to 'src/librustc/lib')
-rw-r--r--src/librustc/lib/llvm.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc/lib/llvm.rs b/src/librustc/lib/llvm.rs
index 0639526ffdb..f8d2edefd36 100644
--- a/src/librustc/lib/llvm.rs
+++ b/src/librustc/lib/llvm.rs
@@ -1936,7 +1936,7 @@ impl ObjectFile {
         unsafe {
             let llof = llvm::LLVMCreateObjectFile(llmb);
             if llof as int == 0 {
-                llvm::LLVMDisposeMemoryBuffer(llmb);
+                // LLVMCreateObjectFile took ownership of llmb
                 return None
             }