libusbgx: Fix memory leak when unable to create directory.
authorKrzysztof Opasiak <k.opasiak@samsung.com>
Mon, 16 Dec 2013 09:49:38 +0000 (10:49 +0100)
committerKrzysztof Opasiak <k.opasiak@samsung.com>
Tue, 22 Dec 2015 19:33:56 +0000 (20:33 +0100)
commit41c958208ec6922df4fd7e94dc597b7757d28ed0
tree7d6de60126e56348748131d9dfb0cea3778990d1
parent066c8a0ff32154357d027674e32d4d02de933070
libusbgx: Fix memory leak when unable to create directory.

Free the memory allocated for gadget/config/function structure
when faild to create suitable directory.

Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
[Port from libusbg and update description]
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
src/usbg.c