[Pcsclite-cvs-commit] r6133 - /trunk/Drivers/ccid/src/ifdhandler.c
rousseau at users.alioth.debian.org
rousseau at users.alioth.debian.org
Tue Dec 6 10:16:54 UTC 2011
Author: rousseau
Date: Tue Dec 6 10:16:54 2011
New Revision: 6133
URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=6133
Log:
IFDHCreateChannelByName(): fix memory leak
Memory leak if the OpenPortByName() failed
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=6133&op=diff
==============================================================================
--- trunk/Drivers/ccid/src/ifdhandler.c (original)
+++ trunk/Drivers/ccid/src/ifdhandler.c Tue Dec 6 10:16:54 2011
@@ -105,7 +105,8 @@
else
return_value = IFD_COMMUNICATION_ERROR;
- /* release the allocated reader_index */
+ /* release the allocated resources */
+ free(CcidSlots[reader_index].readerName);
ReleaseReaderIndex(reader_index);
}
else
More information about the Pcsclite-cvs-commit
mailing list