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:
parent
703a8cf960
commit
cf71b13e15
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user