From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] eal: fix leak in hotplug add on parse error Date: Thu, 03 Aug 2017 22:06:43 +0200 Message-ID: <2852960.RY6FMqKSor@xps> References: <90dae107bf7e55ec42ae8223d5666a77bd9ddfe7.1501763614.git.gaetan.rivet@6wind.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: Gaetan Rivet Return-path: Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by dpdk.org (Postfix) with ESMTP id 238BE2C16 for ; Thu, 3 Aug 2017 22:06:46 +0200 (CEST) In-Reply-To: <90dae107bf7e55ec42ae8223d5666a77bd9ddfe7.1501763614.git.gaetan.rivet@6wind.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" 03/08/2017 14:34, Gaetan Rivet: > If rte_eal_devargs_parse fails, the rte_devargs has not yet been inserted > in the global list. When jumping to err_devarg, the removal fails and it > is not properly freed. > > Free the allocated rte_devargs if its removal failed. > > Coverity issue: 158658 > Fixes: 7e8b26650146 ("eal: fix hotplug add / remove") > > Signed-off-by: Gaetan Rivet Applied, thanks