> -----Original Message-----
> From: Yunjian Wang <[email protected]>
> Sent: Thursday, December 14, 2023 9:46 AM
> To: [email protected]
> Cc: Zhang, Qi Z <[email protected]>; Wu, Jingjing <[email protected]>;
> Xing, Beilei <[email protected]>; [email protected];
> [email protected]; Yunjian Wang <[email protected]>;
> [email protected]
> 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: [email protected]
> 
> Signed-off-by: Yunjian Wang <[email protected]>
Acked-by: Qi Zhang <[email protected]>

Thanks
Qi

Reply via email to