Allow the config file scanner to release its buffers upon EOF.

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3296 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Mark M. Hoffman committed 2006-05-16 02:14:57 +00:00
1 parent bda180fcff
commit 9a8f962d88
1 file changed
+7 -1
+7 -1
View File
@@ -47,7 +47,6 @@ char sensors_lex_error[100];
/* Scanner for configuration files */
%option noyywrap
%option nodefault
%option yylineno
%option nounput
@@ -269,3 +268,10 @@ OCTESC (1[0-7]{0,2})|([2-7][0-7]?)|(0[1-7][0-7]?)|(00[1-7])
}
%%
int sensors_yywrap(void)
{
yy_delete_buffer(YY_CURRENT_BUFFER);
return 1;
}