http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53510
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-05-29 11:34:42 UTC --- Author: jakub Date: Tue May 29 11:34:38 2012 New Revision: 187952 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=187952 Log: PR middle-end/53510 * input.c (read_line): Use XRESIZEVEC instead of XNEWVEC to avoid leaking memory. No need to handle memory allocation failure. Double string_len on each reallocation instead of adding 2. * gcov.c (read_line): Likewise. Modified: trunk/gcc/ChangeLog trunk/gcc/gcov.c trunk/gcc/input.c