Martin Roth has submitted this change and it was merged. ( https://review.coreboot.org/19561 )
Change subject: intelmetool: free sb pci_dev struct allocated by pci_get_dev() ......................................................................
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 --- M util/intelmetool/intelmetool.c 1 file changed, 1 insertion(+), 0 deletions(-)
Approvals: Paul Menzel: Looks good to me, but someone else must approve Philipp Deppenwiese: Looks good to me, approved build bot (Jenkins): Verified
diff --git a/util/intelmetool/intelmetool.c b/util/intelmetool/intelmetool.c index d6fd0fe..62dc4d9 100644 --- a/util/intelmetool/intelmetool.c +++ b/util/intelmetool/intelmetool.c @@ -220,6 +220,7 @@ printf("MEI not hidden on PCI, checking if visible\n"); }
+ pci_free_dev(sb); pci_cleanup(pacc);
return 0;