[Bug libfortran/29101] memory leak in libgfortran
jvdelisle at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sat Sep 16 01:29:00 GMT 2006
------- Comment #1 from jvdelisle at gcc dot gnu dot org 2006-09-16 01:28 -------
Confirmed: As can be seen here. We are allocating, but not freeing pstr.6
{
char[1:D.960] * pstr.6;
int4 D.960;
int4 D.959;
char[1:_input] & D.958;
static struct _jump_struct jumptable.5[2] = {{.string1=0B, .string1_len=0,
.string2=0B, .string2_len=0, .target=&L.3}, {.string1="x", .string1_len=1,
.string2="x", .string2_len=1, .target=&L.4}};
D.958 = input;
D.959 = _input;
D.960 = D.959;
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);
L.4:;
*value = 1;
goto L.5;
L.3:;
__result_validate_value = 0;
goto L.5;
L.5:;
}
return __result_validate_value;
--
jvdelisle at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2006-09-16 01:28:58
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29101
More information about the Gcc-bugs
mailing list