mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-11-27 13:54:19 +08:00
re PR fortran/30430 (Memory corruption in the module search path code)
PR fortran/30430 * scanner.c (gfc_release_include_path): Free gfc_option.module_dir only once! From-SVN: r120667
This commit is contained in:
parent
50ef2c18a9
commit
1bc2338361
@ -1,3 +1,9 @@
|
||||
2007-01-11 Francois-Xavier Coudert <coudert@clipper.ens.fr>
|
||||
|
||||
PR fortran/30430
|
||||
* scanner.c (gfc_release_include_path): Free gfc_option.module_dir
|
||||
only once!
|
||||
|
||||
2007-01-09 Brooks Moses <brooks.moses@codesourcery.com>
|
||||
|
||||
* simplify.c (gfc_simplify_ibclr): Fix POS comparison.
|
||||
|
@ -172,7 +172,6 @@ gfc_release_include_path (void)
|
||||
{
|
||||
gfc_directorylist *p;
|
||||
|
||||
gfc_free (gfc_option.module_dir);
|
||||
while (include_dirs != NULL)
|
||||
{
|
||||
p = include_dirs;
|
||||
@ -181,7 +180,6 @@ gfc_release_include_path (void)
|
||||
gfc_free (p);
|
||||
}
|
||||
|
||||
gfc_free (gfc_option.module_dir);
|
||||
while (intrinsic_modules_dirs != NULL)
|
||||
{
|
||||
p = intrinsic_modules_dirs;
|
||||
@ -189,6 +187,8 @@ gfc_release_include_path (void)
|
||||
gfc_free (p->path);
|
||||
gfc_free (p);
|
||||
}
|
||||
|
||||
gfc_free (gfc_option.module_dir);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user