projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
53bd1b9
)
Free memory allocated by copy_env.
author
Chris Lattner
<sabre@nondot.org>
Sun, 14 May 2006 19:17:28 +0000
(19:17 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sun, 14 May 2006 19:17:28 +0000
(19:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28299
91177308
-0d34-0410-b5e6-
96231b3b80d8
tools/gccld/GenerateCode.cpp
patch
|
blob
|
history
diff --git
a/tools/gccld/GenerateCode.cpp
b/tools/gccld/GenerateCode.cpp
index 9dffe332e48a6feb92cea2abb5e6d421694dd657..967fbf0b803e048df4b24eb316ce3ac353e08f77 100644
(file)
--- a/
tools/gccld/GenerateCode.cpp
+++ b/
tools/gccld/GenerateCode.cpp
@@
-438,7
+438,9
@@
int llvm::GenerateNative(const std::string &OutputFilename,
// 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());