From: mikael Date: Wed, 6 Oct 2010 14:23:30 +0000 (+0000) Subject: 2010-10-06 Mikael Morin X-Git-Tag: upstream/4.9.2~26098 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3dd5c53f6d9a88408f62d90539a6c004c91caaff;p=platform%2Fupstream%2Flinaro-gcc.git 2010-10-06 Mikael Morin * module.c (gfc_use_module): Free atom_string when done with it. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165029 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index b4252ec..2e4e178 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,5 +1,9 @@ 2010-10-06 Mikael Morin + * module.c (gfc_use_module): Free atom_string when done with it. + +2010-10-06 Mikael Morin + * module.c (read_module): Remove useless string duplication. 2010-10-06 Mikael Morin diff --git a/gcc/fortran/module.c b/gcc/fortran/module.c index 02f5756..71699ad 100644 --- a/gcc/fortran/module.c +++ b/gcc/fortran/module.c @@ -5687,6 +5687,8 @@ gfc_use_module (void) "for file '%s' opened at %C", atom_string, MOD_VERSION, filename); } + + gfc_free (atom_string); } if (c == '\n')