From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16070 invoked by alias); 5 Aug 2007 01:51:14 -0000 Received: (qmail 15907 invoked by uid 22791); 5 Aug 2007 01:51:13 -0000 X-Spam-Check-By: sourceware.org Received: from b.mail.sonic.net (HELO b.mail.sonic.net) (64.142.19.5) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 05 Aug 2007 01:51:11 +0000 Received: from webmail.sonic.net (b.webmail.sonic.net [64.142.100.148]) by b.mail.sonic.net (8.13.8.Beta0-Sonic/8.13.7) with ESMTP id l751p9AN005553 for ; Sat, 4 Aug 2007 18:51:09 -0700 Received: from 12.7.175.2 (SquirrelMail authenticated user msnyder) by webmail.sonic.net with HTTP; Sat, 4 Aug 2007 18:51:09 -0700 (PDT) Message-ID: <9892.12.7.175.2.1186278669.squirrel@webmail.sonic.net> Date: Sun, 05 Aug 2007 01:51:00 -0000 Subject: [PATCH] c-exp.y, memory leak From: msnyder@sonic.net To: gdb-patches@sourceware.org User-Agent: SquirrelMail/1.4.9a MIME-Version: 1.0 Content-Type: multipart/mixed;boundary="----=_20070804185109_83011" Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2007-08/txt/msg00091.txt.bz2 ------=_20070804185109_83011 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Content-length: 0 ------=_20070804185109_83011 Content-Type: text/plain; name="171.txt" Content-Transfer-Encoding: 8bit Content-Disposition: attachment; filename="171.txt" Content-length: 852 2007-08-04 Michael Snyder * c-exp.y (parse_number): Memory leak. Index: c-exp.y =================================================================== RCS file: /cvs/src/src/gdb/c-exp.y,v retrieving revision 1.38 diff -p -r1.38 c-exp.y *** c-exp.y 12 Jun 2007 15:33:03 -0000 1.38 --- c-exp.y 5 Aug 2007 01:49:51 -0000 *************** parse_number (p, len, parsed_float, puti *** 1096,1104 **** putithere->typed_val_float.type = builtin_type (current_gdbarch)->builtin_long_double; else ! return ERROR; } return FLOAT; } --- 1096,1108 ---- putithere->typed_val_float.type = builtin_type (current_gdbarch)->builtin_long_double; else ! { ! free (s); ! return ERROR; ! } } + free (s); return FLOAT; } ------=_20070804185109_83011--