From f37562187f2673535a8e636e7ea5b37662b5a65a Mon Sep 17 00:00:00 2001 From: Ben Burdette Date: Thu, 7 Apr 2022 11:17:31 -0600 Subject: [PATCH] free valmap on exit --- src/libcmd/command.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libcmd/command.cc b/src/libcmd/command.cc index cc353cbb4..e3c8fb29f 100644 --- a/src/libcmd/command.cc +++ b/src/libcmd/command.cc @@ -164,7 +164,7 @@ ref EvalCommand::getEvalState() if (expr.staticenv) { - auto vm = mapStaticEnvBindings(*expr.staticenv.get(), env); + std::unique_ptr vm(mapStaticEnvBindings(*expr.staticenv.get(), env)); runRepl(evalState, error, expr, *vm); } };