Signed-off-by: Ravi Kumar <ravi1.ku...@amd.com> --- drivers/crypto/ccp/ccp_pmd_ops.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/drivers/crypto/ccp/ccp_pmd_ops.c b/drivers/crypto/ccp/ccp_pmd_ops.c index 9e94dcf..daeb59c 100644 --- a/drivers/crypto/ccp/ccp_pmd_ops.c +++ b/drivers/crypto/ccp/ccp_pmd_ops.c @@ -647,8 +647,13 @@ ccp_pmd_info_get(struct rte_cryptodev *dev, static int ccp_pmd_qp_release(struct rte_cryptodev *dev, uint16_t qp_id) { + struct ccp_qp *qp; + if (dev->data->queue_pairs[qp_id] != NULL) { - rte_free(dev->data->queue_pairs[qp_id]); + qp = (struct ccp_qp *)dev->data->queue_pairs[qp_id]; + rte_ring_free(qp->processed_pkts); + rte_mempool_free(qp->batch_mp); + rte_free(qp); dev->data->queue_pairs[qp_id] = NULL; } return 0; -- 2.7.4