On Fri, Sep 30, 2016 at 5:19 PM, David Marchand <david.marchand at 6wind.com> wrote: > Hello, > > On Thu, Sep 29, 2016 at 3:41 AM, Yangchao Zhou <zhouyates at gmail.com> wrote: >> Signed-off-by: Yangchao Zhou <zhouyates at gmail.com> >> --- >> lib/librte_eal/common/eal_common_pci.c | 1 + >> 1 files changed, 1 insertions(+), 0 deletions(-) >> >> diff --git a/lib/librte_eal/common/eal_common_pci.c >> b/lib/librte_eal/common/eal_common_pci.c >> index 7248c38..eb44998 100644 >> --- a/lib/librte_eal/common/eal_common_pci.c >> +++ b/lib/librte_eal/common/eal_common_pci.c >> @@ -378,6 +378,7 @@ rte_eal_pci_detach(const struct rte_pci_addr *addr) >> goto err_return; >> >> TAILQ_REMOVE(&pci_device_list, dev, next); >> + free(dev); >> return 0; >> } >> return -1; >> -- >> 1.7.1 >> > > For the title, how about: > pci: fix memory leak when detaching devices > > Afaics the fixes tag would be : > > Fixes: dbe6b4b61b0e ("pci: probe or close device") > > + CC stable
Thomas, can you apply this with my ack ? Thanks. -- David Marchand