diff options
author | Patrick Georgi <pgeorgi@chromium.org> | 2017-01-04 22:08:10 +0100 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2017-01-06 18:42:18 +0100 |
commit | a370ae855627364694c089e9a69a98fc837bfb0f (patch) | |
tree | 6405c877faafc1d90f829fa93260bb09c194d031 /payloads/libpayload/drivers | |
parent | 61dac130b2319301969ddf2cb471913045cb9378 (diff) | |
download | coreboot-a370ae855627364694c089e9a69a98fc837bfb0f.tar.xz |
libpayload: xhci: plug leak
Change-Id: Ia163872846906c6c78144a984a405812f856f626
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Found-by: Coverity Scan #1325835
Reviewed-on: https://review.coreboot.org/18035
Tested-by: build bot (Jenkins)
Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'payloads/libpayload/drivers')
-rw-r--r-- | payloads/libpayload/drivers/usb/xhci_devconf.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/payloads/libpayload/drivers/usb/xhci_devconf.c b/payloads/libpayload/drivers/usb/xhci_devconf.c index 48d928c380..b697b0fd0f 100644 --- a/payloads/libpayload/drivers/usb/xhci_devconf.c +++ b/payloads/libpayload/drivers/usb/xhci_devconf.c @@ -451,6 +451,7 @@ xhci_destroy_dev(hci_t *const controller, const int slot_id) *ic->drop = (1 << num_eps) - 1; /* Drop all endpoints we can. */ *ic->drop &= ~(1 << 1 | 1 << 0); /* Not allowed to drop EP0 or Slot. */ int cc = xhci_cmd_evaluate_context(xhci, slot_id, ic); + free(ic); if (cc != CC_SUCCESS) xhci_debug("Failed to quiesce slot %d: %d\n", slot_id, cc); cc = xhci_cmd_stop_endpoint(xhci, slot_id, 1); |