From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id BD5281B6FF for ; Tue, 24 Oct 2017 02:06:43 +0200 (CEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 23 Oct 2017 17:06:38 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.43,424,1503385200"; d="scan'208";a="1234359513" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.241.225.136]) ([10.241.225.136]) by fmsmga002.fm.intel.com with ESMTP; 23 Oct 2017 17:06:37 -0700 To: Yong Wang Cc: dev@dpdk.org References: <1505902132-30967-1-git-send-email-wang.yong19@zte.com.cn> From: Ferruh Yigit Message-ID: <057ce035-6d2b-36b9-42a4-67a5d346b107@intel.com> Date: Mon, 23 Oct 2017 17:06:37 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <1505902132-30967-1-git-send-email-wang.yong19@zte.com.cn> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH] linuxapp/eal: fix memory leak X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Oct 2017 00:06:44 -0000 On 9/20/2017 3:08 AM, Yong Wang wrote: > In func rte_eal_init(), dynamic memory stored in 'logid' allocated > through func 'strdup' is lost when return. Fix it by freeing the memory > before return. Hi Yong, This seems duplicate of http://dpdk.org/dev/patchwork/patch/29112/ Please check following threads related to the patch http://dpdk.org/ml/archives/dev/2017-October/077440.html http://dpdk.org/ml/archives/dev/2017-October/078607.html I am updating patch as duplicated in patchwork. > > Signed-off-by: Yong Wang <...>