Changeset ae754e5f in mainline for uspace/lib/usb/src/ddfiface.c

Timestamp:
2011-10-31T10:44:12Z (14 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
10059a68
Parents:
3562cd18
Message:

libusbdev: Fix memory leak and possible double free in error path.

We need child_fun to be valid pointer otherwise the ddf_fun create allocated
memory is unreachable.
ddf_fun_create str_dups name so free it asap.
It's driver_data that needs to be protected from free as we now nothing about that place in this function.

(No files)

Note: See TracChangeset for help on using the changeset viewer.