summaryrefslogtreecommitdiff
path: root/drivers/compress
diff options
context:
space:
mode:
authorPablo de Lara <pablo.de.lara.guarch@intel.com>2018-07-11 07:38:46 +0100
committerPablo de Lara <pablo.de.lara.guarch@intel.com>2018-07-24 01:48:10 +0200
commitf51c2901549085d176e5adc70777758481165fb9 (patch)
tree69354773ed85136cf23ab9d1ba9073101fbb5112 /drivers/compress
parent2d02781c7ad90cd68dd0a05ce3323b2b0d8a991c (diff)
downloaddpdk-next-eventdev-f51c2901549085d176e5adc70777758481165fb9.zip
dpdk-next-eventdev-f51c2901549085d176e5adc70777758481165fb9.tar.gz
dpdk-next-eventdev-f51c2901549085d176e5adc70777758481165fb9.tar.xz
compress/isal: fix memory leak
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 <pablo.de.lara.guarch@intel.com> Acked-by: Lee Daly <lee.daly@intel.com>
Diffstat (limited to 'drivers/compress')
-rw-r--r--drivers/compress/isal/isal_compress_pmd_ops.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/compress/isal/isal_compress_pmd_ops.c b/drivers/compress/isal/isal_compress_pmd_ops.c
index 0738fb9..c61acd4 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;