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 5774B298F for ; Mon, 19 Sep 2016 10:51:00 +0200 (CEST) Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga103.fm.intel.com with ESMTP; 19 Sep 2016 01:50:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.30,361,1470726000"; d="scan'208";a="11205978" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.237.220.115]) ([10.237.220.115]) by orsmga004.jf.intel.com with ESMTP; 19 Sep 2016 01:50:58 -0700 To: Dror Birkman , dev@dpdk.org References: From: Ferruh Yigit Message-ID: <0fed8e2f-5f81-6c42-e961-26fb29297c69@intel.com> Date: Mon, 19 Sep 2016 09:50:57 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] pcap: memory leak in eth_pcap_rx_jumbo X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Sep 2016 08:51:00 -0000 Hi Dror, On 9/18/2016 12:14 PM, Dror Birkman wrote: > Hi, > > It seems there is a memory leak in eth_pcap_rx_jumbo() in > case rte_pktmbuf_alloc() fails on any segment that is not the initial > segment. > > If someone can confirm it, I'll patch it. > I think you are right. If rte_pktmbuf_alloc() fails, previously allocated mbufs, including first one in the segment, not freed. Thanks, ferruh