Changeset 2a11192 in mainline for uspace/lib/usb/src/pipes.c


Ignore:
Timestamp:
2011-02-01T23:18:54Z (13 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
787421c
Parents:
52fb76e
Message:

Fix phone leakage

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usb/src/pipes.c

    r52fb76e r2a11192  
    8282        my_address = usb_drv_get_my_address(hc_phone, device);
    8383        if (my_address < 0) {
    84                 return my_address;
     84                rc = my_address;
     85                goto leave;
    8586        }
    8687
     
    8889            hc_handle, my_address);
    8990
     91leave:
     92        ipc_hangup(hc_phone);
    9093        return rc;
    9194}
Note: See TracChangeset for help on using the changeset viewer.