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


Ignore:
Timestamp:
2015-07-04T03:47:55Z (9 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
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/uhci/main.c

    rb5f813c r55346870  
    7676
    7777        const int ret = hc_init(instance, res, irq);
    78         if (ret == EOK)
     78        if (ret == EOK) {
    7979                hcd_set_implementation(hcd, instance, &uhci_hc_driver.ops);
     80        } else {
     81                free(instance);
     82        }
    8083        return ret;
    8184}
Note: See TracChangeset for help on using the changeset viewer.