From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1764 invoked by alias); 10 Nov 2008 20:33:28 -0000 Received: (qmail 1733 invoked by uid 22791); 10 Nov 2008 20:33:28 -0000 X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 10 Nov 2008 20:32:48 +0000 Received: (qmail 20184 invoked from network); 10 Nov 2008 20:32:46 -0000 Received: from unknown (HELO orlando.local) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 10 Nov 2008 20:32:46 -0000 From: Pedro Alves To: gdb-patches@sourceware.org, Tom Tromey Subject: Re: RFA: fix memory leak in "source" command Date: Mon, 10 Nov 2008 20:50:00 -0000 User-Agent: KMail/1.9.10 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200811102028.07858.pedro@codesourcery.com> X-IsSubscribed: yes 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: 2008-11/txt/msg00194.txt.bz2 On Monday 10 November 2008 19:37:09, Tom Tromey wrote: > Valgrind pointed out that the "source" command leaks full_pathname. > > The fix is to add a cleanup for it. This patch also makes sure to run > the cleanups on early return from the function. > > Built and regested on x86-64 (compile farm). > Ok? > Ok, :REVIEWMAIL: -- Pedro Alves