From 3d2e4fe6756027ec9826cd8bb94173f691c9a7f8 Mon Sep 17 00:00:00 2001 From: Mikael Morin Date: Wed, 6 Oct 2010 14:43:55 +0000 Subject: [PATCH] primary.c (gfc_free_structure_ctor_component): Also free the component structure itself. 2010-10-06 Mikael Morin * primary.c (gfc_free_structure_ctor_component): Also free the component structure itself. From-SVN: r165032 --- gcc/fortran/ChangeLog | 5 +++++ gcc/fortran/primary.c | 1 + 2 files changed, 6 insertions(+) diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index 2e4e1780c14..c75bb8b7724 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,8 @@ +2010-10-06 Mikael Morin + + * primary.c (gfc_free_structure_ctor_component): Also free the + component structure itself. + 2010-10-06 Mikael Morin * module.c (gfc_use_module): Free atom_string when done with it. diff --git a/gcc/fortran/primary.c b/gcc/fortran/primary.c index f6ceae91903..9d0deec0c8f 100644 --- a/gcc/fortran/primary.c +++ b/gcc/fortran/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); } -- 2.30.2