[fortran,6/22] Various minor fixups

Submitted by Mikael Morin on Oct. 5, 2010, 10:11 a.m.

Details

Message ID 20101005100948.1836.16167@gimli.local
State New
Headers show

Commit Message

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 hide | download patch | download mbox

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);
 }