From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21312 invoked by alias); 4 Mar 2011 18:19:27 -0000 Received: (qmail 21238 invoked by uid 22791); 4 Mar 2011 18:19:26 -0000 X-SWARE-Spam-Status: No, hits=-6.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 04 Mar 2011 18:19:24 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p24IIo8Q026332 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 4 Mar 2011 13:18:50 -0500 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p24IIo4v024637; Fri, 4 Mar 2011 13:18:50 -0500 Received: from opsy.redhat.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id p24IIndZ021492; Fri, 4 Mar 2011 13:18:49 -0500 Received: by opsy.redhat.com (Postfix, from userid 500) id D054937967C; Fri, 4 Mar 2011 11:18:48 -0700 (MST) From: Tom Tromey To: Michael Snyder Cc: Tristan Gingold , Jakub Jelinek , "gdb-patches\@sourceware.org" , "gcc-patches\@gcc.gnu.org" Subject: Re: libiberty/cplus-dem.c, ada-demangle: plug memory leak. References: <4D70061C.10904@vmware.com> <20110303213008.GY30899@tyan-ft48-01.lab.bos.redhat.com> <4D700F5D.2030109@vmware.com> <807E3430-F4F7-464D-8E8A-527A86BA3D88@adacore.com> <4D712A5F.1040307__35010.4677411311$1299262072$gmane$org@vmware.com> Date: Fri, 04 Mar 2011 18:19:00 -0000 In-Reply-To: <4D712A5F.1040307__35010.4677411311$1299262072$gmane$org@vmware.com> (Michael Snyder's message of "Fri, 04 Mar 2011 10:07:27 -0800") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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: 2011-03/txt/msg00302.txt.bz2 >>>>> "Michael" == Michael Snyder writes: Michael> Are you sure? There is a path to "goto unknown" from before the Michael> call to the alloc function. It might actually be null. Some Michael> versions of 'free' don't like that. This isn't an issue with free any more. Jim Meyering did some research into it a while ago and fixed a number of popular free software projects to remove the useless test. Here's a page with some interesting data: http://www.winehq.org/pipermail/wine-patches/2006-October/031544.html Tom