Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp730086ybt; Sat, 13 Jun 2020 20:41:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyCmqcg9uZBnhX9WToQqoprSKFiG5nU3wHsykzvBfA+Ido7ETmDLRnnVpRDiKPWk7zEfO5a X-Received: by 2002:a17:906:6094:: with SMTP id t20mr7847535ejj.359.1592106109366; Sat, 13 Jun 2020 20:41:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592106109; cv=none; d=google.com; s=arc-20160816; b=pRc235P257rHrdeUDoHNcFNQkX8tLMfuBPAwBxBti08VBeSXGkrC7YI/KzLZQ91Cct Z0KGuRMcyH+2plVGhaR7Tz365wTfl3Gtb8boO+CLs31kpdCak6NTLVeGcCl7++WRtt4q F7cDmXoc7L0ymDokZfIfyedgaczYK7b6p1Tp26OR/P+wfzuoF4UylajkzXXZ2FsmjWQQ rIRkDVdOrFWMVYozFltpS/7YeA7FWuOyPgWymAWaewBIBsJeXGHsS9jpTB407W0QqXYp 95RnteY/5Cy1WOnsrlf5Zf9EISXy+rlPk8CUL55rn/lj0mSMoE103S9z00x8wjjF0fAI 6ktQ== 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:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=OkdbzvFsi7ujDgQcjkfYD6UlYtql4Wpu71qwc23MfK4=; b=Ul5XtORDDB15LteEmxdTRqCAH0D938ziZaq8lw7ZVPUNZg6s0sjsbjV39eqHPflSsn 613x5TVxbP7VQCW0UsodKHv1hLAm1nErnJsMO3mNEv42imi+wuEcd9kZEi6EgE6W4VH7 Ks6ijFDWRsLzjJ+IzjRAck66VY3quWRxZtwDfZlIJvpWQH+77YavzcZ8sgCZDLFz/uuS hDDGe7R5tOmj04CMDlSVoAPURu2c2wLUpZg4r9gdfkcqykorVlr1+sELD8n4X8lkSp6i UnXQqyhCPl3D6KCg3fHTtSrVxHL4NfCpTrVnDyZEk2S8oMjFFue+MCj6HPX1gUYo576P 63CA== 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 r10si6375163ejj.249.2020.06.13.20.41.27; Sat, 13 Jun 2020 20:41:49 -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 S1726761AbgFNDjt (ORCPT + 99 others); Sat, 13 Jun 2020 23:39:49 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:5823 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726486AbgFNDjs (ORCPT ); Sat, 13 Jun 2020 23:39:48 -0400 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 026B18A9B4B57F43D2F9; Sun, 14 Jun 2020 11:39:44 +0800 (CST) Received: from [127.0.0.1] (10.166.215.88) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.487.0; Sun, 14 Jun 2020 11:39:35 +0800 Subject: Re: [PATCH v2 1/2] perf tools: Fix potential memory leaks in perf events parser To: Markus Elfring , Cheng Jian , , CC: , Arnaldo Carvalho de Melo , Ingo Molnar , Peter Zijlstra References: <20200611145605.21427-1-chenwandun@huawei.com> <20200611145605.21427-2-chenwandun@huawei.com> <51efcf82-4c0c-70d3-9700-6969e6decde1@web.de> From: Chen Wandun Message-ID: <4faf0979-2c9f-f0c7-5778-908b50f740a6@huawei.com> Date: Sun, 14 Jun 2020 11:39:34 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 In-Reply-To: <51efcf82-4c0c-70d3-9700-6969e6decde1@web.de> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.166.215.88] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 在 2020/6/12 2:50, Markus Elfring 写道: >> Fix memory leak of in function parse_events_term__sym_hw() >> and parse_events_term__clone() when error occur. > How do you think about a wording variant like the following? > > Release a configuration object after a string duplication failed. Thank you for your reply, I will update in v3 Best Regards,     Chen Wandun > > Regards, > Markus >