util/inteltool: fix memory leak
A struct pci_dev was allocated but not freed. Change-Id: I6a8bbef6a118fc1f0aa7037e72c4d0dda9208f4b Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> Found-by: Coverity Scan #1353037 Reviewed-on: https://review.coreboot.org/15971 Tested-by: build bot (Jenkins) Reviewed-by: Duncan Laurie <dlaurie@chromium.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
This commit is contained in:
parent
be8f0fa2bb
commit
030c73031d
|
@ -439,6 +439,7 @@ int print_ambs(struct pci_dev *dev, struct pci_access *pacc)
|
||||||
|
|
||||||
max_channel = pci_read_byte(dev16, 0x56)/max_branch;
|
max_channel = pci_read_byte(dev16, 0x56)/max_branch;
|
||||||
max_amb = pci_read_byte(dev16, 0x57);
|
max_amb = pci_read_byte(dev16, 0x57);
|
||||||
|
pci_free_dev(dev16);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue