Message ID | AANLkTi=B=vK5O7SK24JT6KZ2Yk78BxEKYt5KrNeW=62G@mail.gmail.com |
---|---|
State | New |
Headers | show |
On Sat, Nov 13, 2010 at 13:41, Kai Tietz <ktietz70@googlemail.com> wrote: > 2010-11-13 Kai Tietz > > * lto-plugin.c (add_output_files): Fix memory leak. OK. Diego.
2010/11/13 Diego Novillo <dnovillo@google.com>: > On Sat, Nov 13, 2010 at 13:41, Kai Tietz <ktietz70@googlemail.com> wrote: > >> 2010-11-13 Kai Tietz >> >> * lto-plugin.c (add_output_files): Fix memory leak. > > OK. > > > Diego. > Committed at revision 166718. Thanks, Kai
Index: lto-plugin.c =================================================================== --- lto-plugin.c (revision 166701) +++ lto-plugin.c (working copy) @@ -461,7 +461,10 @@ buf = s; cont: if (!fgets (buf, piece, f)) - break; + { + free (s); + break; + } len = strlen (s); if (s[len - 1] != '\n') {