[dpdk-dev] pci:fix missing free
Commit Message
Signed-off-by: zhouyangchao <zhouyates@gmail.com>
---
lib/librte_eal/common/eal_common_pci.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
Comments
Hi,
2016-09-23 10:06, zhouyangchao:
> Signed-off-by: zhouyangchao <zhouyates@gmail.com>
Is your first name Yangchao and your surname Zhou?
If so, it would be:
Signed-off-by: Yangchao Zhou <zhouyates@gmail.com>
@@ -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;