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:
ff8953a
)
Delete memory allocated by CopyEnv
author
Chris Lattner
<sabre@nondot.org>
Sun, 14 May 2006 18:38:13 +0000
(18:38 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sun, 14 May 2006 18:38:13 +0000
(18:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28288
91177308
-0d34-0410-b5e6-
96231b3b80d8
tools/llvm-ld/llvm-ld.cpp
patch
|
blob
|
history
diff --git
a/tools/llvm-ld/llvm-ld.cpp
b/tools/llvm-ld/llvm-ld.cpp
index 46fd291476309908f1b46305512e452d2357e9b3..1900cc9866a4a80bae1a76c54b9b7698660b76c9 100644
(file)
--- a/
tools/llvm-ld/llvm-ld.cpp
+++ b/
tools/llvm-ld/llvm-ld.cpp
@@
-312,7
+312,9
@@
static int GenerateNative(const std::string &OutputFilename,
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