From 9a8f962d88162c85c9bbe63a987a9c8ba2e0973d Mon Sep 17 00:00:00 2001 From: "Mark M. Hoffman" Date: Tue, 16 May 2006 02:14:57 +0000 Subject: [PATCH] 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 --- lib/conf-lex.l | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/conf-lex.l b/lib/conf-lex.l index adead65f..dd369321 100644 --- a/lib/conf-lex.l +++ b/lib/conf-lex.l @@ -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; +} +