From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5014 invoked by alias); 16 Sep 2006 01:29:06 -0000 Received: (qmail 4951 invoked by uid 48); 16 Sep 2006 01:28:58 -0000 Date: Sat, 16 Sep 2006 01:29:00 -0000 Message-ID: <20060916012858.4950.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug libfortran/29101] memory leak in libgfortran In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "jvdelisle at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2006-09/txt/msg01505.txt.bz2 List-Id: ------- 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