From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 105827 invoked by alias); 17 Feb 2016 17:05:41 -0000 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 Received: (qmail 105801 invoked by uid 89); 17 Feb 2016 17:05:41 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=morning X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Wed, 17 Feb 2016 17:05:40 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (Postfix) with ESMTPS id 1EE8C7EBA1; Wed, 17 Feb 2016 17:05:39 +0000 (UTC) Received: from blade.nx (ovpn-116-100.ams2.redhat.com [10.36.116.100]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u1HH5cfO029387; Wed, 17 Feb 2016 12:05:38 -0500 Received: by blade.nx (Postfix, from userid 1000) id DE6CF2643E9; Wed, 17 Feb 2016 17:05:37 +0000 (GMT) Date: Wed, 17 Feb 2016 17:05:00 -0000 From: Gary Benson To: gdb-patches@sourceware.org Cc: Pedro Alves , Luis Machado Subject: Re: [OB PATCH] Add missing cleanup in exec_file_locate_attach Message-ID: <20160217170537.GA27909@blade.nx> References: <20160217135324.GC24631@blade.nx> <1455728537-27577-1-git-send-email-gbenson@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1455728537-27577-1-git-send-email-gbenson@redhat.com> X-IsSubscribed: yes X-SW-Source: 2016-02/txt/msg00525.txt.bz2 Gary Benson wrote: > exec_file_locate_attach allocates memory for full_exec_path (using > either exec_file_find, source_full_path_of or xstrdup) but this > memory is never freed. This commit adds the necessary cleanup. This isn't the fix I talked about, just something I found on the way. I didn't mean to copy everyone on this little patch :) The real fix is coming tomorrow morning. Cheers, Gary -- http://gbenson.net/