test/event_crypto: fix to avail mempool entries

Added the missed code to avail the mempool entries before
pool free.

Fixes: 24054e3640a2 ("test/crypto: use separate session mempools")
Cc: stable@dpdk.org

Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
Acked-by: Abhinandan Gujjar <abhinandan.gujjar@intel.com>
This commit is contained in:
Hemant Agrawal 2019-11-07 14:31:20 +05:30 committed by Jerin Jacob
parent 18d934cb51
commit 0b1e11b0b6

View File

@ -889,6 +889,7 @@ crypto_teardown(void)
params.session_mpool = NULL;
}
if (params.session_priv_mpool != NULL) {
rte_mempool_avail_count(params.session_priv_mpool);
rte_mempool_free(params.session_priv_mpool);
params.session_priv_mpool = NULL;
}