Hi, I have found a potential memory-leak bug in the project and would like to report it to the maintainers. Can you please help me to check it? Thank you for your effort and patience!
In function pci_dev_add in file common/pci_dev.c, dev is assigned with newly allocated memory at line 295 and then assigned to pci_bus->dev_list at line 320, wherepci_bus is the 1st param of the function. In function dev_c2600_pci_init (in file common/dev_c2600_pci.c) , d->bus is used as the 1st param of call for pci_dev_add at line 193 and d is a local variable. The allocated memory (d->bus->dev_list) is not freed, which may cause a memory-leak bug.

Hi, I have found a potential memory-leak bug in the project and would like to report it to the maintainers. Can you please help me to check it? Thank you for your effort and patience!
In function
pci_dev_addin filecommon/pci_dev.c,devis assigned with newly allocated memory at line 295 and then assigned topci_bus->dev_listat line 320, wherepci_busis the 1st param of the function. In functiondev_c2600_pci_init(in filecommon/dev_c2600_pci.c) ,d->busis used as the 1st param of call forpci_dev_addat line 193 anddis a local variable. The allocated memory (d->bus->dev_list) is not freed, which may cause a memory-leak bug.