scd: Fix memory leaks.
authorNIIBE Yutaka <gniibe@fsij.org>
Wed, 27 Apr 2016 15:08:08 +0000 (00:08 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Wed, 27 Apr 2016 15:08:08 +0000 (00:08 +0900)
commit508b0deb70d39d388149be9a63fab24cc956a239
tree188dcf66165e18fbb365f1aae2d45f96f5749fcb
parent87de9e19edf0311ca0342e15ef44ebe40e32861e
scd: Fix memory leaks.

* scd/ccid-driver.c (scan_or_find_usb_device): Return on
LIBUSB_ERROR_NO_MEM.  Free CONFIG before return except on error.
(scan_or_find_devices): Free device list.

--

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
scd/ccid-driver.c