[dpdk-dev] [PATCH] pci:fix missing free
Yangchao Zhou
zhouyates at gmail.com
Thu Sep 29 03:41:10 CEST 2016
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
More information about the dev
mailing list