From 76c02ae83c1359dbc4cac7e16000aeef2a66d4cf Mon Sep 17 00:00:00 2001 From: mikael Date: Wed, 6 Oct 2010 14:43:55 +0000 Subject: [PATCH] 2010-10-06 Mikael Morin * primary.c (gfc_free_structure_ctor_component): Also free the component structure itself. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165032 138bc75d-0d04-0410-961f-82ee72b054a4 --- 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 2e4e178..c75bb8b 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,5 +1,10 @@ 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. 2010-10-06 Mikael Morin diff --git a/gcc/fortran/primary.c b/gcc/fortran/primary.c index f6ceae9..9d0deec 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.7.4