mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-21 14:47:03 +01:00
scd: Internal CCID driver: Fix a failure path.
* scd/ccid-driver.c (ccid_open_usb_reader): On error, call libusb_release_interface. -- Backport master commit of: d561c936a217627bc29aac628a8d01f7003dcd28 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
498cd38019
commit
30693dfb6f
@ -1739,6 +1739,7 @@ ccid_open_usb_reader (const char *spec_reader_name,
|
||||
{
|
||||
--ccid_usb_thread_is_alive;
|
||||
free (rid);
|
||||
libusb_release_interface (idev, ifc_no);
|
||||
libusb_close (idev);
|
||||
free (*handle);
|
||||
*handle = NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user