[Pcsclite-cvs-commit] r6129 - /trunk/PCSC/src/readerfactory.c
rousseau at users.alioth.debian.org
rousseau at users.alioth.debian.org
Mon Dec 5 13:57:12 UTC 2011
Author: rousseau
Date: Mon Dec 5 13:57:11 2011
New Revision: 6129
URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=6129
Log:
RFRemoveReader(): add 2 missing pthread_mutex_destroy()
Mutexes for powerState_lock and handlesList_lock were never destroyed.
It was not a real problem since from manpage pthread_mutex_destroy(3):
In the LinuxThreads implementation, no resources are associated
with mutex objects, thus pthread_mutex_destroy actually does nothing
except checking that the mutex is unlocked.
Modified:
trunk/PCSC/src/readerfactory.c
Modified: trunk/PCSC/src/readerfactory.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/readerfactory.c?rev=6129&op=diff
==============================================================================
--- trunk/PCSC/src/readerfactory.c (original)
+++ trunk/PCSC/src/readerfactory.c Mon Dec 5 13:57:11 2011
@@ -514,6 +514,7 @@
sContext->pFeeds = NULL;
}
+ (void)pthread_mutex_destroy(&sContext->powerState_lock);
sContext->version = 0;
sContext->port = 0;
sContext->contexts = 0;
@@ -538,6 +539,7 @@
free(currentHandle);
}
(void)pthread_mutex_unlock(&sContext->handlesList_lock);
+ (void)pthread_mutex_destroy(&sContext->handlesList_lock);
list_destroy(&(sContext->handlesList));
dwNumReadersContexts -= 1;
More information about the Pcsclite-cvs-commit
mailing list