From 769f46625be2fe42d98375a72fb4e5a351df511d Mon Sep 17 00:00:00 2001 From: Paul Wise Date: Thu, 4 May 2017 14:13:08 +0800 Subject: 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 Reviewed-on: https://review.coreboot.org/19561 Tested-by: build bot (Jenkins) Reviewed-by: Philipp Deppenwiese Reviewed-by: Paul Menzel --- util/intelmetool/intelmetool.c | 1 + 1 file changed, 1 insertion(+) (limited to 'util') 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; -- cgit v1.2.3