commit | 9bd36ef2f71f54ca4fdfb5fc6c67b38f0db00398 | [log] [tgz] |
---|---|---|
author | Henrik Baard <henrik.baard@sonymobile.com> | Tue Jul 09 15:14:23 2013 +0200 |
committer | Johan Redestig <johan.redestig@sonymobile.com> | Mon Jan 13 18:06:05 2014 +0100 |
tree | 272c7c84cfbcd38e2dc80c9644b1a494ce76fb0c | |
parent | 868173a53f0d1059408b049f30af3402d5b0de64 [diff] |
Structure device not freed in error case In case of an error in the call usb_device_get_fd() the memory created by usb_open_device() is never freed. Added a call to usb_device_close in case of error to release the allocated memory. Change-Id: Iaa83674f000242d80604dd30c782236f7afd90c2