From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id A994B423BA; Thu, 12 Jan 2023 20:36:23 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A679C42DCF; Thu, 12 Jan 2023 20:36:19 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mails.dpdk.org (Postfix) with ESMTP id 1A36D42D55; Thu, 12 Jan 2023 20:36:17 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1673552178; x=1705088178; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=6AcE7CHRV49s2YcvdXmjcnNo9uPyh2T1uYlS9ipuXak=; b=JIDbeU171U/8k2knv/8E6ZlJGvEl6t90TQr20zPr6fpzBTF1UJ5itO4I IElWpIf10XnCTqekV05tXDe2GQfFVdyJamfhtmbypfWk9lBG0G2GH6LA8 UPdENoCnfiwNYlwPckcSczEYexhhG8DWB20t8M2dv6nDv/+XyCEzzdm6g zEMajPlXjaloRSTZ8hwv4/jw+8QHPBxFJjEYa6/KdsoiXdhvDxTTN3AUv KEmKSOUzI+hlRFth3vfaZdxmvwcZxzHQP2yiMNxGAzH9b25nz6mbtKPJJ g5zb99khIyfhGq/SFtzWEEB0mA6e1yzYaqBYlEs/LL9BJJEzSOS3kC8pw A==; X-IronPort-AV: E=McAfee;i="6500,9779,10588"; a="322502812" X-IronPort-AV: E=Sophos;i="5.97,211,1669104000"; d="scan'208";a="322502812" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jan 2023 11:36:17 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10588"; a="690245064" X-IronPort-AV: E=Sophos;i="5.97,211,1669104000"; d="scan'208";a="690245064" Received: from unknown (HELO csl-npg-qt0.la.intel.com) ([10.233.181.103]) by orsmga001.jf.intel.com with ESMTP; 12 Jan 2023 11:36:16 -0800 From: Hernan Vargas To: dev@dpdk.org, maxime.coquelin@redhat.com, gakhil@marvell.com, trix@redhat.com Cc: nicolas.chautru@intel.com, qi.z.zhang@intel.com, Hernan Vargas , stable@dpdk.org Subject: [PATCH v3 1/7] baseband/acc: acc100 free harq layout pointer Date: Thu, 12 Jan 2023 11:36:03 -0800 Message-Id: <20230112193609.273578-2-hernan.vargas@intel.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20230112193609.273578-1-hernan.vargas@intel.com> References: <20230112193609.273578-1-hernan.vargas@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Explicitly call rte_free for harq_layout pointer in dev_close function to prevent memory leak. Fixes: ba2262fe16c ("baseband/acc100: fix close cleanup") Cc: stable@dpdk.org Signed-off-by: Hernan Vargas --- drivers/baseband/acc/rte_acc100_pmd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/baseband/acc/rte_acc100_pmd.c b/drivers/baseband/acc/rte_acc100_pmd.c index b3164529dd..146a22bd64 100644 --- a/drivers/baseband/acc/rte_acc100_pmd.c +++ b/drivers/baseband/acc/rte_acc100_pmd.c @@ -620,6 +620,7 @@ acc100_dev_close(struct rte_bbdev *dev) rte_free(d->tail_ptrs); rte_free(d->info_ring); rte_free(d->sw_rings_base); + rte_free(d->harq_layout); d->sw_rings_base = NULL; d->tail_ptrs = NULL; d->info_ring = NULL; -- 2.37.1