1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

Delete memory allocated by CopyEnv

llvm-svn: 28288
This commit is contained in:
Chris Lattner 2006-05-14 18:38:13 +00:00
parent 703a8cf960
commit cf71b13e15

View File

@ -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