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



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to