[llvm-commits] CVS: llvm/tools/gccld/GenerateCode.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sun May 14 12:17:39 PDT 2006
Changes in directory llvm/tools/gccld:
GenerateCode.cpp updated: 1.56 -> 1.57
---
Log message:
Free memory allocated by copy_env.
---
Diffs of the changes: (+3 -1)
GenerateCode.cpp | 4 +++-
1 files changed, 3 insertions(+), 1 deletion(-)
Index: llvm/tools/gccld/GenerateCode.cpp
diff -u llvm/tools/gccld/GenerateCode.cpp:1.56 llvm/tools/gccld/GenerateCode.cpp:1.57
--- llvm/tools/gccld/GenerateCode.cpp:1.56 Wed Dec 21 19:50:56 2005
+++ llvm/tools/gccld/GenerateCode.cpp Sun May 14 14:17:28 2006
@@ -438,7 +438,9 @@
// Run the compiler to assembly and link together the program.
if (Verbose) dumpArgs(&args[0]);
- int Res = sys::Program::ExecuteAndWait(gcc, &args[0], (const char**)clean_env);
+ int Res = sys::Program::ExecuteAndWait(gcc, &args[0],(const char**)clean_env);
+
+ delete [] clean_env;
while (!StringsToDelete.empty()) {
free(StringsToDelete.back());
More information about the llvm-commits
mailing list