This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch, libfortran] PR40508 Memory Leak


Jerry DeLisle wrote:
> In the meantime, OK to commit the following to trunk in the interim?
The patch is OK - but please add a comment as Steven suggested.

Tobias

> 2009-06-21  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
>
>     PR libfortran/40508
>     * io/format.c: Don't save parsed format data for internal units.
>
> Index: format.c
> ===================================================================
> --- format.c    (revision 148448)
> +++ format.c    (working copy)
> @@ -1218,7 +1218,8 @@ parse_format (st_parameter_dt *dtp)
>        free_format_hash_table (dtp->u.p.current_unit);
>        return;
>      }
> -  save_parsed_format (dtp);
> +  if (!is_internal_unit (dtp))
> +    save_parsed_format (dtp);
>  }
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]