Commit 3d2e4fe6 by Mikael Morin

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

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
parent ccd2b322
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. * module.c (gfc_use_module): Free atom_string when done with it.
2010-10-06 Mikael Morin <mikael@gcc.gnu.org> 2010-10-06 Mikael Morin <mikael@gcc.gnu.org>
......
...@@ -2164,6 +2164,7 @@ gfc_free_structure_ctor_component (gfc_structure_ctor_component *comp) ...@@ -2164,6 +2164,7 @@ gfc_free_structure_ctor_component (gfc_structure_ctor_component *comp)
{ {
gfc_free (comp->name); gfc_free (comp->name);
gfc_free_expr (comp->val); gfc_free_expr (comp->val);
gfc_free (comp);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment