> -----Original Message-----
> From: Yunjian Wang <wangyunj...@huawei.com>
> Sent: Thursday, December 14, 2023 9:46 AM
> To: dev@dpdk.org
> Cc: Zhang, Qi Z <qi.z.zh...@intel.com>; Wu, Jingjing <jingjing...@intel.com>;
> Xing, Beilei <beilei.x...@intel.com>; xudin...@huawei.com;
> jerry.lili...@huawei.com; Yunjian Wang <wangyunj...@huawei.com>;
> sta...@dpdk.org
> Subject: [PATCH RESEND] net/iavf: fix memoy leak in error path
>
> In iavf_security_ctx_create() allocated memory for the 'security_ctx', we
> should
> free it when memory malloc for the 'iavf_security_ctx' fails, otherwise it
> will lead
> to memory leak.
>
> Fixes: 6bc987ecb860 ("net/iavf: support IPsec inline crypto")
> Cc: sta...@dpdk.org
>
> Signed-off-by: Yunjian Wang <wangyunj...@huawei.com>
Acked-by: Qi Zhang <qi.z.zh...@intel.com>
Thanks
Qi