summaryrefslogtreecommitdiffstats
path: root/match.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2014-01-07 15:34:41 -0800
committerKaz Kylheku <kaz@kylheku.com>2014-01-07 15:35:21 -0800
commit9578ad156a1b076905eb26dd746261a506a0edcf (patch)
tree5fd776bd0a9c40c7916a76ecc97721cc10cdbb29 /match.c
parent92f542e5134e26cdf2a996aed63eee9ce2584bd7 (diff)
downloadtxr-9578ad156a1b076905eb26dd746261a506a0edcf.tar.gz
txr-9578ad156a1b076905eb26dd746261a506a0edcf.tar.bz2
txr-9578ad156a1b076905eb26dd746261a506a0edcf.zip
* match.c (v_load): Call yylex_destroy after yyparse, so we don't
have stray scanner state possibly interfering with a subsquent parse job.
Diffstat (limited to 'match.c')
-rw-r--r--match.c1
1 files changed, 1 insertions, 0 deletions
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)