free valmap on exit

This commit is contained in:
Ben Burdette 2022-04-07 11:17:31 -06:00
parent 5cfd038bd8
commit f37562187f

View file

@ -164,7 +164,7 @@ ref<EvalState> EvalCommand::getEvalState()
if (expr.staticenv)
{
auto vm = mapStaticEnvBindings(*expr.staticenv.get(), env);
std::unique_ptr<valmap> vm(mapStaticEnvBindings(*expr.staticenv.get(), env));
runRepl(evalState, error, expr, *vm);
}
};