This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[gfortran] Segfault in list formatted read
- From: Paul Brook <paul at nowt dot org>
- To: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>,fortran at gcc dot gnu dot org
- Date: Sun, 12 Oct 2003 15:39:25 +0100
- Subject: [gfortran] Segfault in list formatted read
The patch below fixes a segfault with list formatted reads of character
variables.
Applied to tree-ssa branch.
Paul
2003-10-12 XiaoQiang Zhang <zhangapache@yahoo.com>
* io/list_read.c (read_character): Remove unwanted call to free_saved.
--- clean/tree-ssa/libgfortran/io/list_read.c
+++ gcc/libgfortran/io/list_read.c
@@ -782,7 +782,6 @@ done:
{
unget_char (c);
eat_separator ();
- free_saved ();
saved_type = BT_CHARACTER;
}
else