Changeset 55346870 in mainline for uspace/drv/bus/usb/ohci/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/ohci/main.c

    rb5f813c r55346870  
    7575
    7676        const int ret = hc_init(instance, res, irq);
    77         if (ret == EOK)
     77        if (ret == EOK) {
    7878                hcd_set_implementation(hcd, instance, &ohci_hc_driver.ops);
     79        } else {
     80                free(instance);
     81        }
    7982        return ret;
    8083}
Note: See TracChangeset for help on using the changeset viewer.