This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]