mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-30 13:00:30 +00:00
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:
1 parent
b5ff067425
commit
a938571fc5
1 file changed
+1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user