mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
UPSTREAM: util/inteltool: fix memory leak
A struct pci_dev was allocated but not freed. BUG=None BRANCH=None TEST=None Change-Id: Idb0beda277fac261c8feeee9d60018d15438d716 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> Reviewed-on: https://chromium-review.googlesource.com/366278 Commit-Ready: Furquan Shaikh <furquan@chromium.org> Tested-by: Furquan Shaikh <furquan@chromium.org> Reviewed-by: Furquan Shaikh <furquan@chromium.org>
This commit is contained in:
parent
bc685039b0
commit
92d7382714
1 changed files with 1 additions and 0 deletions
|
@ -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_amb = pci_read_byte(dev16, 0x57);
|
||||
pci_free_dev(dev16);
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
Loading…
Add table
Reference in a new issue