Patchwork [fortran,6/22] Various minor fixups

login
register
mail settings
Submitter Mikael Morin
Date Oct. 5, 2010, 10:11 a.m.
Message ID <20101005100948.1836.16167@gimli.local>
Download mbox | patch
Permalink /patch/66792/
State New
Headers show

Comments

Mikael Morin - Oct. 5, 2010, 10:11 a.m.
2010-10-04  Mikael Morin  <mikael@gcc.gnu.org>

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

Patch

diff --git a/primary.c b/primary.c
index f6ceae9..9d0deec 100644
--- a/primary.c
+++ b/primary.c
@@ -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);
 }