From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olivier Matz Subject: Re: [PATCH 1/2] test/test_mbuf: Remove mempool global var Date: Thu, 8 Jun 2017 12:08:16 +0200 Message-ID: <20170608120816.48c25965@platinum> References: <20170511103044.14298-1-santosh.shukla@caviumnetworks.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org, thomas.monjalon@6wind.com, shreyansh.jain@nxp.com, stable@dpdk.org To: Santosh Shukla Return-path: Received: from mail-wm0-f42.google.com (mail-wm0-f42.google.com [74.125.82.42]) by dpdk.org (Postfix) with ESMTP id 70A912BBB for ; Thu, 8 Jun 2017 12:08:19 +0200 (CEST) Received: by mail-wm0-f42.google.com with SMTP id 7so134523122wmo.1 for ; Thu, 08 Jun 2017 03:08:19 -0700 (PDT) In-Reply-To: <20170511103044.14298-1-santosh.shukla@caviumnetworks.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi Santosh, On Thu, 11 May 2017 16:00:43 +0530, Santosh Shukla wrote: > Cc: stable@dpdk.org > Signed-off-by: Santosh Shukla > --- > test/test/test_mbuf.c | 100 +++++++++++++++++++++++++------------------------- > 1 file changed, 51 insertions(+), 49 deletions(-) > Thank you for doing this fix. My only comment is that commit introduces a memory leak, which is fixed by your second patch. The behavior before your patch was to allocate the pools once but never free them. The behavior after this patch is to allocate the pools each time the test is started and never free them. After your 2 patches, the behavior is good. So I suggest to merge them into one commit. What do you think? Olivier