Patchwork [fortran,5/22] Various minor fixups

login
register
mail settings
Submitter Mikael Morin
Date Oct. 5, 2010, 10:11 a.m.
Message ID <20101005100948.1836.18110@gimli.local>
Download mbox | patch
Permalink /patch/66801/
State New
Headers show

Comments

Mikael Morin - Oct. 5, 2010, 10:11 a.m.
2010-10-04  Mikael Morin  <mikael@gcc.gnu.org>

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

Patch

diff --git a/module.c b/module.c
index c90fe0d..a24ff0d 100644
--- a/module.c
+++ b/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')