summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorPaul Wise <pabs3@bonedaddy.net>2017-05-04 14:13:08 +0800
committerMartin Roth <martinroth@google.com>2017-05-05 22:38:20 +0200
commit769f46625be2fe42d98375a72fb4e5a351df511d (patch)
tree9b7790a92485fa805324c20167b9a21ce11b0caf /util
parent3c02699dd79a574f00adc06513516039f6996d90 (diff)
intelmetool: free sb pci_dev struct allocated by pci_get_dev()
This fixes a memory leak in the activate_me() function. Change-Id: I011b2f96122d8f88aed121352afe3f0d41edef60 Signed-off-by: Paul Wise <pabs3@bonedaddy.net> Reviewed-on: https://review.coreboot.org/19561 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Philipp Deppenwiese <zaolin.daisuki@gmail.com> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'util')
-rw-r--r--util/intelmetool/intelmetool.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/util/intelmetool/intelmetool.c b/util/intelmetool/intelmetool.c
index d6fd0fe528..62dc4d92c4 100644
--- a/util/intelmetool/intelmetool.c
+++ b/util/intelmetool/intelmetool.c
@@ -220,6 +220,7 @@ static int activate_me() {
printf("MEI not hidden on PCI, checking if visible\n");
}
+ pci_free_dev(sb);
pci_cleanup(pacc);
return 0;