test/func_reentrancy: free memzones after test
authorJoyce Kong <joyce.kong@arm.com>
Mon, 23 Aug 2021 02:57:40 +0000 (21:57 -0500)
committerDavid Marchand <david.marchand@redhat.com>
Thu, 16 Sep 2021 15:17:34 +0000 (17:17 +0200)
commitd5559ac589953fa9f018aa581032e0f74bd49729
treea3e9ec1061b7c7ec9772263d2fa6f19bcb9292a2
parent8ef09fdc506b76d505d90e064d1f73533388b640
test/func_reentrancy: free memzones after test

Function reentrancy test limits maximum number of iterations
simultaneously, however it doesn't free the 'fr_test_once'
memzones after the fact, so introduce freeing 'fr_test_once'
in ring/mempool/hash/fbk/lpm_clean.

Meanwhile, add the missing free for test case on main thread.

Fixes: 104a92bd026f ("app: add reentrancy tests")
Fixes: 995eec619024 ("test: clean up memory for function reentrancy test")
Cc: stable@dpdk.org
Signed-off-by: Joyce Kong <joyce.kong@arm.com>
Reviewed-by: Ruifeng Wang <ruifeng.wang@arm.com>
Reviewed-by: Feifei Wang <feifei.wang2@arm.com>
Reviewed-by: Olivier Matz <olivier.matz@6wind.com>
Acked-by: David Marchand <david.marchand@redhat.com>
app/test/test_func_reentrancy.c