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:
parent
82220036f6
commit
44538c626c
@ -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
|
||||
|
@ -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')
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user