diff options
author | Ben Burdette <bburdette@protonmail.com> | 2022-04-07 11:17:31 -0600 |
---|---|---|
committer | Ben Burdette <bburdette@protonmail.com> | 2022-04-07 11:17:31 -0600 |
commit | f37562187f2673535a8e636e7ea5b37662b5a65a (patch) | |
tree | a1cc9746030cbbc4622919e09db357cbd2694c0a /src/libcmd | |
parent | 5cfd038bd8bcd65c45f08f6c3665cd49e6643714 (diff) |
free valmap on exit
Diffstat (limited to 'src/libcmd')
-rw-r--r-- | src/libcmd/command.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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<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); } }; |