Re: [dpdk-dev] [PATCH v4] net/softnic: fix memory leak in parsing arguments

2021-07-23 Thread Thomas Monjalon
> > From: Dapeng Yu > > > > 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 res

Re: [dpdk-dev] [PATCH v4] net/softnic: fix memory leak in parsing arguments

2021-07-16 Thread Singh, Jasvinder
> -Original Message- > From: Yu, DapengX > Sent: Thursday, July 15, 2021 6:38 AM > To: Singh, Jasvinder ; Dumitrescu, Cristian > > Cc: dev@dpdk.org; Yu, DapengX ; sta...@dpdk.org > Subject: [PATCH v4] net/softnic: fix memory leak in parsing arguments > > From: Dapeng Yu > > In funct

[dpdk-dev] [PATCH v4] net/softnic: fix memory leak in parsing arguments

2021-07-14 Thread dapengx . yu
From: Dapeng Yu 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, a