[Pcsclite-cvs-commit] r3144 - /trunk/Drivers/ccid/src/ifdhandler.c

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Tue Sep 23 16:14:15 UTC 2008


Author: rousseau
Date: Tue Sep 23 16:14:15 2008
New Revision: 3144

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=3144
Log:
IFDHCreateChannelByName(): call ClosePort() to release resources if
the 3 IFDHICCPresence() fails

Modified:
    trunk/Drivers/ccid/src/ifdhandler.c

Modified: trunk/Drivers/ccid/src/ifdhandler.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/Drivers/ccid/src/ifdhandler.c?rev=3144&op=diff
==============================================================================
--- trunk/Drivers/ccid/src/ifdhandler.c (original)
+++ trunk/Drivers/ccid/src/ifdhandler.c Tue Sep 23 16:14:15 2008
@@ -119,7 +119,8 @@
 			DEBUG_CRITICAL("failed");
 			return_value = IFD_COMMUNICATION_ERROR;
 
-			/* release the allocated reader_index */
+			/* release the allocated resources */
+			(void)ClosePort(reader_index);
 			ReleaseReaderIndex(reader_index);
 		}
 	}




More information about the Pcsclite-cvs-commit mailing list