OSDN Git Service

2010-10-06 Mikael Morin <mikael@gcc.gnu.org>
authormikael <mikael@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 6 Oct 2010 14:43:55 +0000 (14:43 +0000)
committermikael <mikael@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 6 Oct 2010 14:43:55 +0000 (14:43 +0000)
* primary.c (gfc_free_structure_ctor_component): Also free the
component structure itself.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165032 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/fortran/ChangeLog
gcc/fortran/primary.c

index 2e4e178..c75bb8b 100644 (file)
@@ -1,5 +1,10 @@
 2010-10-06  Mikael Morin  <mikael@gcc.gnu.org>
 
 2010-10-06  Mikael Morin  <mikael@gcc.gnu.org>
 
+       * primary.c (gfc_free_structure_ctor_component): Also free the
+       component structure itself.
+
+2010-10-06  Mikael Morin  <mikael@gcc.gnu.org>
+
        * module.c (gfc_use_module): Free atom_string when done with it.
 
 2010-10-06  Mikael Morin  <mikael@gcc.gnu.org>
        * module.c (gfc_use_module): Free atom_string when done with it.
 
 2010-10-06  Mikael Morin  <mikael@gcc.gnu.org>
index f6ceae9..9d0deec 100644 (file)
@@ -2164,6 +2164,7 @@ gfc_free_structure_ctor_component (gfc_structure_ctor_component *comp)
 {
   gfc_free (comp->name);
   gfc_free_expr (comp->val);
 {
   gfc_free (comp->name);
   gfc_free_expr (comp->val);
+  gfc_free (comp);
 }
 
 
 }