re PR fortran/40508 (memory leak in internal write of gfortran)

2009-06-22  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libfortran/40508
	* io/format.c: Don't save parsed format data for internal units.

From-SVN: r148823
This commit is contained in:
Jerry DeLisle 2009-06-23 00:16:24 +00:00
parent df4ba119d0
commit 573cbcb9c6
2 changed files with 15 additions and 1 deletions

View File

@ -1,3 +1,14 @@
2009-06-xx Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libfortran/32784
* io/unix.c (open_external): Translate CONIN$, CONOUT$, and CONERR$ to
stdin, stdout, and stderr for ming32 or cygwin systems.
2009-06-21 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libfortran/40508
* io/format.c: Don't save parsed format data for internal units.
2009-06-21 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/37577

View File

@ -1218,7 +1218,10 @@ parse_format (st_parameter_dt *dtp)
free_format_hash_table (dtp->u.p.current_unit);
return;
}
save_parsed_format (dtp);
/* TODO: Interim fix for PR40508. Revise this for PR40330. */
if (!is_internal_unit(dtp))
save_parsed_format (dtp);
}