lto-plugin.c (add_output_files): Fix memory leak.

2010-11-13  Kai Tietz  <kai.tietz@onevision.com>

        * lto-plugin.c (add_output_files): Fix memory leak.

From-SVN: r166718
This commit is contained in:
Kai Tietz 2010-11-13 18:49:07 +00:00 committed by Kai Tietz
parent 82220036f6
commit 44538c626c
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2010-11-13 Kai Tietz <kai.tietz@onevision.com>
* lto-plugin.c (add_output_files): Fix memory leak.
2010-11-11 Dave Korn <dave.korn.cygwin@gmail.com>
PR bootstrap/46397

View File

@ -461,7 +461,10 @@ add_output_files (FILE *f)
buf = s;
cont:
if (!fgets (buf, piece, f))
break;
{
free (s);
break;
}
len = strlen (s);
if (s[len - 1] != '\n')
{