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

Changeset 01d9707 in mainline


Ignore:
Timestamp:
2018-01-14T21:27:51Z (4 years ago)
Author:
Petr Manek <petr.manek@…>
Branches:
lfn, master
Children:
4c25c2f
Parents:
17c1d9db
Message:

usbhub: fix leak

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/usbhub/usbhub.c

    r17c1d9db r01d9707  
    164164        opResult = usb_polling_init(polling);
    165165        if (opResult != EOK) {
     166                /* Function is already bound */
    166167                ddf_fun_unbind(hub_dev->hub_fun);
    167168                ddf_fun_destroy(hub_dev->hub_fun);
     
    183184        opResult = usb_polling_start(polling);
    184185        if (opResult != EOK) {
    185                 /* Function is already bound */
     186                /* Polling is already initialized. */
    186187                free(polling->buffer);
     188                usb_polling_fini(polling);
    187189                ddf_fun_unbind(hub_dev->hub_fun);
    188190                ddf_fun_destroy(hub_dev->hub_fun);
Note: See TracChangeset for help on using the changeset viewer.