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

Changeset 82a31261 in mainline


Ignore:
Timestamp:
2011-09-16T14:26:16Z (10 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master
Children:
fd07e526
Parents:
790318e
Message:

vhc: Fix memory leak in error path.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/vhc/connhost.c

    r790318e r82a31261  
    440440        int rc = vhc_virtdev_add_transfer(vhc, transfer);
    441441        if (rc != EOK) {
     442                free(transfer->setup_buffer);
    442443                free(transfer);
    443444                return rc;
     
    479480        int rc = vhc_virtdev_add_transfer(vhc, transfer);
    480481        if (rc != EOK) {
     482                free(transfer->setup_buffer);
    481483                free(transfer);
    482484                return rc;
Note: See TracChangeset for help on using the changeset viewer.