[Pcsclite-cvs-commit] r5835 - /trunk/Drivers/ccid/src/commands.c
rousseau at users.alioth.debian.org
rousseau at users.alioth.debian.org
Wed Jul 6 09:22:58 UTC 2011
Author: rousseau
Date: Wed Jul 6 09:22:58 2011
New Revision: 5835
URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=5835
Log:
CmdEscape(): fix a memory leak
coverity: Event leaked_storage: Variable "cmd_out" going out of scope
leaks the storage it points to.
Modified:
trunk/Drivers/ccid/src/commands.c
Modified: trunk/Drivers/ccid/src/commands.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/Drivers/ccid/src/commands.c?rev=5835&op=diff
==============================================================================
--- trunk/Drivers/ccid/src/commands.c (original)
+++ trunk/Drivers/ccid/src/commands.c Wed Jul 6 09:22:58 2011
@@ -831,6 +831,7 @@
if (length_out < STATUS_OFFSET+1)
{
+ free(cmd_out);
DEBUG_CRITICAL2("Not enough data received: %d bytes", length_out);
return_value = IFD_COMMUNICATION_ERROR;
goto end;
More information about the Pcsclite-cvs-commit
mailing list