aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran
diff options
context:
space:
mode:
authorMikael Morin <mikael@gcc.gnu.org>2010-10-06 14:23:30 +0000
committerMikael Morin <mikael@gcc.gnu.org>2010-10-06 14:23:30 +0000
commit5919751c15c869e1ba4df2b6b870f3ccda4cb80a (patch)
treead242e4cb437ce1d590232a7d52bc16d9eafeaaf /gcc/fortran
parent3e212b5d2bc8746d8e1a9ed86d3122601d797036 (diff)
downloadgcc-5919751c15c869e1ba4df2b6b870f3ccda4cb80a.zip
gcc-5919751c15c869e1ba4df2b6b870f3ccda4cb80a.tar.gz
gcc-5919751c15c869e1ba4df2b6b870f3ccda4cb80a.tar.bz2
module.c (gfc_use_module): Free atom_string when done with it.
2010-10-06 Mikael Morin <mikael@gcc.gnu.org> * module.c (gfc_use_module): Free atom_string when done with it. From-SVN: r165029
Diffstat (limited to 'gcc/fortran')
-rw-r--r--gcc/fortran/ChangeLog4
-rw-r--r--gcc/fortran/module.c2
2 files changed, 6 insertions, 0 deletions
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 <mikael@gcc.gnu.org>
+ * module.c (gfc_use_module): Free atom_string when done with it.
+
+2010-10-06 Mikael Morin <mikael@gcc.gnu.org>
+
* module.c (read_module): Remove useless string duplication.
2010-10-06 Mikael Morin <mikael@gcc.gnu.org>
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')