[Pcsclite-cvs-commit] r6712 - trunk/PCSC/src
ludovic.rousseau at free.fr
ludovic.rousseau at free.fr
Mon Aug 5 19:11:47 UTC 2013
Author: rousseau
Date: 2013-08-05 19:11:47 +0000 (Mon, 05 Aug 2013)
New Revision: 6712
Modified:
trunk/PCSC/src/configfile.l
trunk/PCSC/src/tokenparser.l
Log:
Fix memory leak
Call yylex_destroy() after the lexer is used.
Thanks to Alan Kozlay for the patch
Modified: trunk/PCSC/src/configfile.l
===================================================================
--- trunk/PCSC/src/configfile.l 2013-08-05 18:59:56 UTC (rev 6711)
+++ trunk/PCSC/src/configfile.l 2013-08-05 19:11:47 UTC (rev 6712)
@@ -328,6 +328,7 @@
(void)yylex();
}
while (!feof(configFile));
+ yylex_destroy();
(void)fclose(configFile);
Modified: trunk/PCSC/src/tokenparser.l
===================================================================
--- trunk/PCSC/src/tokenparser.l 2013-08-05 18:59:56 UTC (rev 6711)
+++ trunk/PCSC/src/tokenparser.l 2013-08-05 19:11:47 UTC (rev 6712)
@@ -203,6 +203,7 @@
{
(void)yylex();
} while (!feof(file));
+ yylex_destroy();
(void)fclose(file);
More information about the Pcsclite-cvs-commit
mailing list