[Pcsclite-cvs-commit] r6132 - /trunk/PCSC/src/tokenparser.l

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Mon Dec 5 15:49:27 UTC 2011


Author: rousseau
Date: Mon Dec  5 15:49:27 2011
New Revision: 6132

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=6132
Log:
bundleRelease(): fix a memory leak

We must also free the key of the element.

Modified:
    trunk/PCSC/src/tokenparser.l

Modified: trunk/PCSC/src/tokenparser.l
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/tokenparser.l?rev=6132&op=diff
==============================================================================
--- trunk/PCSC/src/tokenparser.l (original)
+++ trunk/PCSC/src/tokenparser.l Mon Dec  5 15:49:27 2011
@@ -246,6 +246,7 @@
 		list_destroy(&elt->values);
 
 		/* free the key */
+		free(elt->key);
 		free(elt);
 	}
 




More information about the Pcsclite-cvs-commit mailing list