This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch, fortran] PR29101 - Memory leak in select case with character expression
- From: Steven Bosscher <stevenb dot gcc at gmail dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: Paul Thomas <paulthomas2 at wanadoo dot fr>, "'fortran at gcc dot gnu dot org'" <fortran at gcc dot gnu dot org>
- Date: Mon, 18 Sep 2006 19:24:28 +0200
- Subject: Re: [Patch, fortran] PR29101 - Memory leak in select case with character expression
- References: <450ED3EB.5000008@wanadoo.fr>
On Monday 18 September 2006 19:14, Paul Thomas wrote:
> pstr.6 = (char[1:D.960] *) _gfortran_internal_malloc (D.960);
> tolower (pstr.6, D.960, D.958, D.959);
> goto _gfortran_select_string ((void *) &jumptable.5, 2, &L.5, pstr.6,
> D.960);
> _gfortran_internal_free ((void *) pstr.6); /* This was absent. */
How does it help to add this here?
After the goto, I mean? ;-)
Gr.
Steven
> L.4:;
> *value = 1;
> goto L.5;
> L.3:;
> __result_validate_value = 0;
> goto L.5;
> L.5:;