Skip to content

Commit

Permalink
Fix evalContext env leak, by Simn
Browse files Browse the repository at this point in the history
closes #11642
  • Loading branch information
yuxiaomao committed Apr 25, 2024
1 parent 0f4f6b5 commit 6e4fd96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/macro/eval/evalContext.ml
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ let push_environment ctx info =
env_locals = locals;
env_captures = captures;
env_extra_locals = IntMap.empty;
env_parent = eval.env;
env_parent = if info.kind = EKEntrypoint then None else eval.env;
env_eval = eval;
env_stack_depth = stack_depth;
} in
Expand Down

0 comments on commit 6e4fd96

Please sign in to comment.