[llvm-commits] CVS: llvm/tools/llvm-ld/llvm-ld.cpp

Chris Lattner lattner at cs.uiuc.edu
Sun May 14 11:38:26 PDT 2006



Changes in directory llvm/tools/llvm-ld:

llvm-ld.cpp updated: 1.30 -> 1.31
---
Log message:

Delete memory allocated by CopyEnv


---
Diffs of the changes:  (+3 -1)

 llvm-ld.cpp |    4 +++-
 1 files changed, 3 insertions(+), 1 deletion(-)


Index: llvm/tools/llvm-ld/llvm-ld.cpp
diff -u llvm/tools/llvm-ld/llvm-ld.cpp:1.30 llvm/tools/llvm-ld/llvm-ld.cpp:1.31
--- llvm/tools/llvm-ld/llvm-ld.cpp:1.30	Mon Mar  6 00:38:19 2006
+++ llvm/tools/llvm-ld/llvm-ld.cpp	Sun May 14 13:38:13 2006
@@ -312,7 +312,9 @@
   args.push_back(0);
 
   // Run the compiler to assembly and link together the program.
-  return sys::Program::ExecuteAndWait(gcc, &args[0], (const char**)clean_env);
+  int R = sys::Program::ExecuteAndWait(gcc, &args[0], (const char**)clean_env);
+  delete [] clean_env;
+  return R;
 }
 
 /// EmitShellScript - Output the wrapper file that invokes the JIT on the LLVM






More information about the llvm-commits mailing list