> -----Original Message-----
> From: Yu, DapengX <[email protected]>
> Sent: Thursday, July 15, 2021 6:38 AM
> To: Singh, Jasvinder <[email protected]>; Dumitrescu, Cristian
> <[email protected]>
> Cc: [email protected]; Yu, DapengX <[email protected]>; [email protected]
> Subject: [PATCH v4] net/softnic: fix memory leak in parsing arguments
> 
> From: Dapeng Yu <[email protected]>
> 
> In function pmd_parse_args(), firmware path is duplicated from device
> arguments as character string, but is never freed, which cause memory leak.
> 
> This patch changes the type of firmware member of struct pmd_params to
> character array, to make memory resource release unnecessary, and
> changes the type of name member to character array, to keep the
> consistency of character string handling in struct pmd_params.
> 
> Fixes: 7e68bc20f8c8 ("net/softnic: restructure")
> Cc: [email protected]
> 
> Signed-off-by: Dapeng Yu <[email protected]>
> ---

Acked-by: Jasvinder Singh <[email protected]>

Reply via email to