primary.c (gfc_free_structure_ctor_component): Also free the component structure...
authorMikael Morin <mikael@gcc.gnu.org>
Wed, 6 Oct 2010 14:43:55 +0000 (14:43 +0000)
committerMikael Morin <mikael@gcc.gnu.org>
Wed, 6 Oct 2010 14:43:55 +0000 (14:43 +0000)
2010-10-06  Mikael Morin  <mikael@gcc.gnu.org>

* primary.c (gfc_free_structure_ctor_component): Also free the
component structure itself.

From-SVN: r165032

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

index 2e4e1780c1482cd4411c8a8638223f9e19867539..c75bb8b77244cfd3dbb8ae655b3f6152144b9f59 100644 (file)
@@ -1,3 +1,8 @@
+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.
index f6ceae91903850c48ae77a056b60f9d612a64e30..9d0deec0c8f432411a44af0943a70ec46f67c9b3 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);
 }