mirror of
https://github.com/RPCS3/llvm.git
synced 2024-11-26 13:10:42 +00:00
Free memory allocated by copy_env.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28299 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
53bd1b9de7
commit
c78098291e
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user