[Pcsclite-cvs-commit] r4568 - /trunk/PCSC/src/winscard_clnt.c

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Tue Nov 24 15:09:56 UTC 2009


Author: rousseau
Date: Tue Nov 24 15:09:55 2009
New Revision: 4568

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=4568
Log:
SCardCheckDaemonAvailability(): do not delete the context since it is
already done by SCardCleanContext()

Modified:
    trunk/PCSC/src/winscard_clnt.c

Modified: trunk/PCSC/src/winscard_clnt.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/winscard_clnt.c?rev=4568&op=diff
==============================================================================
--- trunk/PCSC/src/winscard_clnt.c (original)
+++ trunk/PCSC/src/winscard_clnt.c Tue Nov 24 15:09:55 2009
@@ -3649,7 +3649,6 @@
 
 		while (list_size(&contextMapList) != 0)
 		{
-			int lrv;
 			SCONTEXTMAP * currentContextMap;
 
 			currentContextMap = list_get_at(&contextMapList, 0);
@@ -3657,15 +3656,6 @@
 				(void)SCardCleanContext(currentContextMap);
 			else
 				Log1(PCSC_LOG_CRITICAL, "list_get_at returned NULL");
-
-			lrv = list_delete_at(&contextMapList, 0);
-			if (lrv < 0)
-			{
-				Log2(PCSC_LOG_CRITICAL,
-						"list_delete_at failed with return value: %X", lrv);
-			}
-			/* man free says it is OK to call free(NULL) */
-			free(currentContextMap);
 		}
 
 		(void)SCardUnlockThread();




More information about the Pcsclite-cvs-commit mailing list