From a938571fc56c18bd533b6b33838f2eadc8ed0cb1 Mon Sep 17 00:00:00 2001 From: "Mark M. Hoffman" Date: Sat, 30 Dec 2006 04:08:40 +0000 Subject: [PATCH] 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 --- lib/conf-lex.l | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/conf-lex.l b/lib/conf-lex.l index b0e8fd94..9912c026 100644 --- a/lib/conf-lex.l +++ b/lib/conf-lex.l @@ -276,6 +276,7 @@ ignore{BLANK}* { <> { strcpy(sensors_lex_error, "Reached end-of-file without a matching double quote."); + buffer_free(); BEGIN(MIDDLE); return ERROR; }