Changeset 60c6fe0 in mainline


Ignore:
Timestamp:
2011-10-01T22:40:51Z (13 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
54935cf6, d95f02ff
Parents:
8fa6d4c7
Message:

Fix a possible use-after-free.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/usbmast/main.c

    r8fa6d4c7 r60c6fe0  
    158158        }
    159159
    160         free(fun_name);
    161         fun_name = NULL;
    162 
    163160        /* Allocate soft state */
    164161        mfun = ddf_dev_data_alloc(mdev->ddf_dev, sizeof(usbmast_fun_t));
     
    218215                goto error;
    219216        }
     217
     218        free(fun_name);
    220219
    221220        return EOK;
Note: See TracChangeset for help on using the changeset viewer.