From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] raw/skeleton_rawdev: fix memory leak on test failure Date: Thu, 25 Oct 2018 00:54:07 +0200 Message-ID: <1826553.Bfjk9qCGBg@xps> References: <20181024053302.22937-1-shreyansh.jain@nxp.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: Shreyansh Jain Return-path: Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by dpdk.org (Postfix) with ESMTP id 2A3262BAE for ; Thu, 25 Oct 2018 00:54:06 +0200 (CEST) In-Reply-To: <20181024053302.22937-1-shreyansh.jain@nxp.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" 24/10/2018 07:33, Shreyansh Jain: > In skeleton_rawdev unit tests, a malloc'd memory was leaking in case > the next sequential test fails. This fix moves the free of the > malloc'd memory above the failing test. > > Coverity issue: 260402 > > Fixes: 55ca1b0f2151 ("raw/skeleton: add test cases") > Cc: shreyansh.jain@nxp.com > > Signed-off-by: Shreyansh Jain Applied, thanks