X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=lib%2Flibrte_pmd_bond%2Frte_eth_bond_api.c;h=f594fe153bdbeb45fde2d69f8c6940c5f922067f;hb=80d8c6a5bb0893b7484f869f802b08697b2b6769;hp=13f39417ea9571804be1ade2621c19b4618069bc;hpb=10ef5d7891882d8b5a379904b40c2ba66ee1472a;p=dpdk.git diff --git a/lib/librte_pmd_bond/rte_eth_bond_api.c b/lib/librte_pmd_bond/rte_eth_bond_api.c index 13f39417ea..f594fe153b 100644 --- a/lib/librte_pmd_bond/rte_eth_bond_api.c +++ b/lib/librte_pmd_bond/rte_eth_bond_api.c @@ -318,14 +318,11 @@ rte_eth_bond_create(const char *name, uint8_t mode, uint8_t socket_id) return eth_dev->data->port_id; err: - if (pci_dev) - rte_free(pci_dev); - if (pci_id_table) - rte_free(pci_id_table); - if (eth_drv) - rte_free(eth_drv); - if (internals) - rte_free(internals); + rte_free(pci_dev); + rte_free(pci_id_table); + rte_free(eth_drv); + rte_free(internals); + return -1; }