diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog index 8d3a4b45e63f..c64254288d6e 100644 --- a/libgfortran/ChangeLog +++ b/libgfortran/ChangeLog @@ -1,3 +1,9 @@ +2007-11-03 Jerry DeLisle + + PR libfortran/33985 + * io/transfer.c (finalize_transfer): Do not flush for + unformatted STREAM I/O. + 2007-10-27 Tobias Burnus * mk-kinds-h.sh: Change LANG=C to LC_ALL=C. diff --git a/libgfortran/io/transfer.c b/libgfortran/io/transfer.c index 793f1941d04e..38bb96bf9ddc 100644 --- a/libgfortran/io/transfer.c +++ b/libgfortran/io/transfer.c @@ -2640,9 +2640,11 @@ finalize_transfer (st_parameter_dt *dtp) if (is_stream_io (dtp)) { if (dtp->u.p.current_unit->flags.form == FORM_FORMATTED) - next_record (dtp, 1); - flush (dtp->u.p.current_unit->s); - sfree (dtp->u.p.current_unit->s); + { + next_record (dtp, 1); + flush (dtp->u.p.current_unit->s); + sfree (dtp->u.p.current_unit->s); + } return; }