[dpdk-dev] [PATCH 1/1] bus/fslmc: fix memory leak in secondary process

wangyunjian wangyunjian at huawei.com
Fri Jul 17 11:36:59 CEST 2020


> -----Original Message-----
> From: David Marchand [mailto:david.marchand at redhat.com]
> Sent: Friday, July 17, 2020 5:21 PM
> To: wangyunjian <wangyunjian at huawei.com>; Hemant Agrawal
> <hemant.agrawal at nxp.com>
> Cc: dev <dev at dpdk.org>; Sachin Saxena <sachin.saxena at nxp.com>; Lilijun
> (Jerry) <jerry.lilijun at huawei.com>; xudingke <xudingke at huawei.com>; dpdk
> stable <stable at dpdk.org>
> Subject: Re: [dpdk-dev] [PATCH 1/1] bus/fslmc: fix memory leak in secondary
> process
> 
> On Thu, Jul 9, 2020 at 12:40 PM wangyunjian <wangyunjian at huawei.com>
> wrote:
> >
> > From: Yunjian Wang <wangyunjian at huawei.com>
> >
> > In fslmc_process_mcp(), we allocate memory for 'dev_name' but not
> > released before return in secondary process.
> 
> dev_name is not used anymore since a69f79300262 ("bus/fslmc: support multi
> VFIO group") We can remove it entirely in this function.

Thanks for your suggestion, will include it in next version.

Yunjian

> 
> --
> David Marchand



More information about the dev mailing list