From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id 565191B535; Wed, 11 Jul 2018 16:44:37 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Jul 2018 07:44:33 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,338,1526367600"; d="scan'208";a="244846954" Received: from silpixa00399466.ir.intel.com (HELO silpixa00399466.ger.corp.intel.com) ([10.237.223.220]) by fmsmga006.fm.intel.com with ESMTP; 11 Jul 2018 07:44:27 -0700 From: Pablo de Lara To: lee.daly@intel.com Cc: dev@dpdk.org, Pablo de Lara , stable@dpdk.org Date: Wed, 11 Jul 2018 07:38:46 +0100 Message-Id: <20180711063846.47189-3-pablo.de.lara.guarch@intel.com> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180711063846.47189-1-pablo.de.lara.guarch@intel.com> References: <20180711063846.47189-1-pablo.de.lara.guarch@intel.com> Subject: [dpdk-dev] [PATCH 3/3] compress/isal: fix memory leak X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jul 2018 14:44:39 -0000 Processed operations ring is created for each queue pair, but it was not being freed when the queue pair was released. Fixes: b0e23c458a6f ("compress/isal: add queue pair related ops") Cc: stable@dpdk.org Signed-off-by: Pablo de Lara --- drivers/compress/isal/isal_compress_pmd_ops.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/compress/isal/isal_compress_pmd_ops.c b/drivers/compress/isal/isal_compress_pmd_ops.c index 0738fb9c4..c61acd40c 100644 --- a/drivers/compress/isal/isal_compress_pmd_ops.c +++ b/drivers/compress/isal/isal_compress_pmd_ops.c @@ -167,6 +167,9 @@ isal_comp_pmd_qp_release(struct rte_compressdev *dev, uint16_t qp_id) if (qp->state != NULL) rte_free(qp->state); + if (qp->processed_pkts != NULL) + rte_ring_free(qp->processed_pkts); + rte_free(qp); dev->data->queue_pairs[qp_id] = NULL; -- 2.14.4