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 2bd9d8eaca
commit ab81de7514
1 changed files with 3 additions and 1 deletions

View File

@ -440,6 +440,8 @@ int llvm::GenerateNative(const std::string &OutputFilename,
if (Verbose) dumpArgs(&args[0]);
int Res = sys::Program::ExecuteAndWait(gcc, &args[0],(const char**)clean_env);
delete [] clean_env;
while (!StringsToDelete.empty()) {
free(StringsToDelete.back());
StringsToDelete.pop_back();