1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 12:41:49 +01:00

Free memory allocated by copy_env.

llvm-svn: 28299
This commit is contained in:
Chris Lattner 2006-05-14 19:17:28 +00:00
parent 084de55c60
commit 017b3a4335

View File

@ -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());