Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 55346870 in mainline for uspace/drv/bus/usb/ehci/main.c


Ignore:
Timestamp:
2015-07-04T03:47:55Z (8 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial
Children:
eb34d8e
Parents:
b5f813c
Message:

uhci,ohci,ehci: Fix memory leaks in error paths.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/ehci/main.c

    rb5f813c r55346870  
    8080
    8181        const int ret = hc_init(instance, res, irq);
    82         if (ret == EOK)
     82        if (ret == EOK) {
    8383                hcd_set_implementation(hcd, instance, &ehci_hc_driver.ops);
     84        } else {
     85                free(instance);
     86        }
    8487        return ret;
    8588}
Note: See TracChangeset for help on using the changeset viewer.