summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--match.c1
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 3a5c7f4a..9108376e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2014-01-07 Kaz Kylheku <kaz@kylheku.com>
+
+ * match.c (v_load): Call yylex_destroy after yyparse, so we don't
+ have stray scanner state possibly interfering with a subsquent
+ parse job.
+
2014-01-06 Kaz Kylheku <kaz@kylheku.com>
* genvim.txr: Add forgotten until and last keywords.
diff --git a/match.c b/match.c
index 2e4568af..23e96e9e 100644
--- a/match.c
+++ b/match.c
@@ -3583,6 +3583,7 @@ static val v_load(match_files_ctx *c)
int gc = gc_state(0);
parse_reset(path);
yyparse();
+ yylex_destroy();
gc_state(gc);
if (errors)