[PATCH v2] test/crypto: free memory in error and skip paths
Power, Ciara
ciara.power at intel.com
Wed May 17 17:44:03 CEST 2023
> -----Original Message-----
> From: Anoob Joseph <anoobj at marvell.com>
> Sent: Wednesday 17 May 2023 11:55
> To: Akhil Goyal <gakhil at marvell.com>; Fan Zhang
> <fanzhang.oss at gmail.com>; Power, Ciara <ciara.power at intel.com>
> Cc: Hemant Agrawal <hemant.agrawal at nxp.com>; Jerin Jacob
> <jerinj at marvell.com>; Tejasree Kondoj <ktejasree at marvell.com>;
> dev at dpdk.org
> Subject: [PATCH v2] test/crypto: free memory in error and skip paths
>
> In multi session tests, multiple sessions get created. So the handling in
> ut_teardown won't guard against any memory that is not freed by the test
> case. Test case should free sessions as well as local memory that was used to
> save session pointers both in case of unsupported cases as well as operation
> failures.
>
> Signed-off-by: Anoob Joseph <anoobj at marvell.com>
> ---
> v2:
> * Moved 'ASSERT' to the end to allow cleanup in all cases.
> ---
<snip>
Acked-by: Ciara Power <ciara.power at intel.com>
More information about the dev
mailing list