Fix a memory leak in the scanner that occurs when we're missing a closing quote

before an immediate EOF.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4273 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Mark M. Hoffman committed 2006-12-30 04:08:40 +00:00
1 parent b5ff067425
commit a938571fc5
1 file changed
+1
+1
View File
@@ -276,6 +276,7 @@ ignore{BLANK}* {
<<EOF>> {
strcpy(sensors_lex_error,
"Reached end-of-file without a matching double quote.");
buffer_free();
BEGIN(MIDDLE);
return ERROR;
}