]> gcc.gnu.org Git - gcc.git/commitdiff
module.c (gfc_use_module): Free atom_string when done with it.
authorMikael Morin <mikael@gcc.gnu.org>
Wed, 6 Oct 2010 14:23:30 +0000 (14:23 +0000)
committerMikael Morin <mikael@gcc.gnu.org>
Wed, 6 Oct 2010 14:23:30 +0000 (14:23 +0000)
2010-10-06  Mikael Morin  <mikael@gcc.gnu.org>

* module.c (gfc_use_module): Free atom_string when done with it.

From-SVN: r165029

gcc/fortran/ChangeLog
gcc/fortran/module.c

index b4252ec7f799eedb4f20352b3d5da9bb17ea0534..2e4e1780c1482cd4411c8a8638223f9e19867539 100644 (file)
@@ -1,3 +1,7 @@
+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.
index 02f57566d6c052254d9312c94ccdcfe6018656e9..71699ade59353ad6974e60721280804359717adb 100644 (file)
@@ -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')
This page took 0.07014 seconds and 5 git commands to generate.