Re: [PATCH] tools: PCI: Fix memory leak in run_test

2020-11-19 Thread Lorenzo Pieralisi
On Thu, Jun 11, 2020 at 07:32:46PM +0800, Peng Fan wrote: > We should free "test" before the return of run_test. > > Signed-off-by: Peng Fan > --- > tools/pci/pcitest.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/tools/pci/pcitest.c b/tools/pci/pcitest.c > index 0a1344c..7c20332

[PATCH] tools: PCI: Fix memory leak in run_test

2020-06-11 Thread Peng Fan
We should free "test" before the return of run_test. Signed-off-by: Peng Fan --- tools/pci/pcitest.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/pci/pcitest.c b/tools/pci/pcitest.c index 0a1344c..7c20332 100644 --- a/tools/pci/pcitest.c +++ b/tools/pci/pcitest.c @@ -47,6 +47,7 @@