From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2016 invoked by alias); 17 Feb 2016 18:11:00 -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 2002 invoked by uid 89); 17 Feb 2016 18:10:59 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 17 Feb 2016 18:10:59 +0000 Received: from svr-orw-fem-02x.mgc.mentorg.com ([147.34.96.206] helo=SVR-ORW-FEM-02.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1aW6Yy-0004cD-2a from Luis_Gustavo@mentor.com ; Wed, 17 Feb 2016 10:10:56 -0800 Received: from [172.30.1.77] (147.34.91.1) by svr-orw-fem-02.mgc.mentorg.com (147.34.96.168) with Microsoft SMTP Server id 14.3.224.2; Wed, 17 Feb 2016 10:10:55 -0800 Reply-To: Luis Machado Subject: Re: [OB PATCH] Add missing cleanup in exec_file_locate_attach References: <20160217135324.GC24631@blade.nx> <1455728537-27577-1-git-send-email-gbenson@redhat.com> To: Gary Benson , CC: Pedro Alves From: Luis Machado Message-ID: <56C4B7AA.60308@codesourcery.com> Date: Wed, 17 Feb 2016 18:11:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <1455728537-27577-1-git-send-email-gbenson@redhat.com> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2016-02/txt/msg00526.txt.bz2 On 02/17/2016 03:02 PM, Gary Benson wrote: > Hi all, > > 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. > > Pushed as obvious. Well spotted!