X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;ds=inline;f=drivers%2Fpci%2Fpci-uclass.c;h=504d7e3bb134d1422e901cda320c4a1a3b2df093;hb=1b87f9538f28566a4f718532f9c6a2a19842dbde;hp=40f59c0c4c439a3a97a982590b64fcfc9c57e52d;hpb=5f9518b2e1126b6413bab32a8e3f507e0a89f857;p=u-boot diff --git a/drivers/pci/pci-uclass.c b/drivers/pci/pci-uclass.c index 40f59c0c4c..504d7e3bb1 100644 --- a/drivers/pci/pci-uclass.c +++ b/drivers/pci/pci-uclass.c @@ -660,6 +660,7 @@ static int pci_find_and_bind_driver(struct udevice *parent, ret = device_bind_driver(parent, drv, str, devp); if (ret) { debug("%s: Failed to bind generic driver: %d\n", __func__, ret); + free(str); return ret; } debug("%s: No match found: bound generic driver instead\n", __func__);