[Pcsclite-cvs-commit] r6462 - /trunk/PCSC/src/winscard_svc.c

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Thu Sep 13 17:11:32 UTC 2012


Author: rousseau
Date: Thu Sep 13 17:11:32 2012
New Revision: 6462

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=6462
Log:
MSGRemoveContext(): Unref the reader

RFReaderInfoById() is called and implicitely increase the reader
reference count. So we shall call UNREF_READER() before exiting.

Modified:
    trunk/PCSC/src/winscard_svc.c

Modified: trunk/PCSC/src/winscard_svc.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/winscard_svc.c?rev=6462&op=diff
==============================================================================
--- trunk/PCSC/src/winscard_svc.c (original)
+++ trunk/PCSC/src/winscard_svc.c Thu Sep 13 17:11:32 2012
@@ -811,6 +811,8 @@
 		if (lrv < 0)
 			Log2(PCSC_LOG_CRITICAL,
 				"list_delete_at failed with return value: %d", lrv);
+
+		UNREF_READER(rContext)
 	}
 	(void)pthread_mutex_unlock(&threadContext->cardsList_lock);
 	list_destroy(&threadContext->cardsList);




More information about the Pcsclite-cvs-commit mailing list