Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp1561858ybj; Fri, 8 May 2020 04:23:04 -0700 (PDT) X-Google-Smtp-Source: APiQypKfzT/n8CHG0/jTMTwqVy70ZrXgNeY0tOQ0ppzVVQEESg6erUsYPdUKcc6/4kBX1LN8IrLj X-Received: by 2002:a17:906:e5a:: with SMTP id q26mr1343154eji.261.1588936984298; Fri, 08 May 2020 04:23:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588936984; cv=none; d=google.com; s=arc-20160816; b=VqY6mXkUNQRuhZtm97ntA1LrDPPVLop5gooPIuG6tiTKMplbdkHMMU4OzVx9nRrv6C TKOpBiY2KM4CSxhV/K0CkdfCjz6r/4plTvk4FAcviKszynDmid8LSJIOVdFEoWn7sCxj zldSMPzv5eeqwuoU5t1Q/x8wIBRRG5ujnmOTn/RWTkqZCY7sWnw7/qpiCGc3Qz1/yHMX 2Uq9hJPSo63JsblIWwxImTf1Y6xvEM4Uuvy9siA9DWTvNgxxraxInzK/PvHAzgq4iPsh px3qzyks8CvV+kwkE0wXEZKOmBjzX9tf70qlXa4uQ84vUN3EcI2PCN+i+NDmxjJAZnQS Ud6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=iDKV8EamorwXHxonZI/ugODH7tnqXFm9tn5hJwsqMYo=; b=UJR7j/fbmm2Bp4HaP7kkR+VGmrHnJxz8t8QTAgFBTUZNoe/T90OHXzK70yWO04cSfE MbtNiLe2+d2HDiTuvB+beKyPqvvKZzd3i00COlNYD6CG729RhTA49RvHvvT8FqjBDPhz 8wQDHqtqOHDNwtqhEDCJHGSlAJ5gPMOUZhiN0NkY3fSR63BxvTWe1k7PT+AvlWxqDypI Fcss85+D4n16bpn9LR37U2bj6k6ZHZQw0ICOp80lK2WDfjbyApBVGK5OKjk9peJRBN+R CuWXwsYlmy8eNpgoVVgVAnV/z2K7x1GMm5aG9DSIK3gLkI0LAacxpCIZ2YeaeNxKHT1X EE9g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lw23si708054ejb.423.2020.05.08.04.22.37; Fri, 08 May 2020 04:23:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726904AbgEHLTB (ORCPT + 99 others); Fri, 8 May 2020 07:19:01 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:4352 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726616AbgEHLTB (ORCPT ); Fri, 8 May 2020 07:19:01 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 9BE995CE615340AAD23F; Fri, 8 May 2020 19:18:58 +0800 (CST) Received: from [127.0.0.1] (10.166.215.237) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.487.0; Fri, 8 May 2020 19:18:51 +0800 Subject: Re: [PATCH v3] tools/bootconfig: fix resource leak in apply_xbc() To: Markus Elfring , Steven Rostedt , Masami Hiramatsu CC: , , "Shiyuan Hu" , Hewenliang , Dan Carpenter References: <3569aa33-8963-966d-9247-ec79b3b3d56d@huawei.com> <5e2c3348-f346-e3f2-9c7c-5c4135f9b38c@web.de> From: Yunfeng Ye Message-ID: <559edb00-a03b-747e-8ba7-1f16285deefb@huawei.com> Date: Fri, 8 May 2020 19:18:39 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <5e2c3348-f346-e3f2-9c7c-5c4135f9b38c@web.de> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 8bit X-Originating-IP: [10.166.215.237] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/5/8 19:03, Markus Elfring wrote: > … >> +++ b/tools/bootconfig/main.c >> @@ -314,31 +314,35 @@ int apply_xbc(const char *path, const char *xbc_path) > … >> +free_data: >> free(data); > … > > Would any software users prefer to omit the memory release for > a quicker program termination? > > Can the commit message become clearer about the explanation for > the importance of the proposed change? > ok, thanks. this change can fix the warning of tools. > Regards, > Markus > >