Skip to content
Snippets Groups Projects
Commit ab81de75 authored by Chris Lattner's avatar Chris Lattner
Browse files

Free memory allocated by copy_env.

llvm-svn: 28299
parent 2bd9d8ea
No related branches found
No related tags found
No related merge requests found
......@@ -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());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment