diff options
Diffstat (limited to 'Shell/Builtin.cpp')
-rw-r--r-- | Shell/Builtin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Shell/Builtin.cpp b/Shell/Builtin.cpp index a113094720..c3184eefa4 100644 --- a/Shell/Builtin.cpp +++ b/Shell/Builtin.cpp @@ -698,7 +698,7 @@ int Shell::builtin_shift(int argc, const char** argv) } if (!argv_->is_list()) - argv_ = *new AST::ListValue({ argv_ }); + argv_ = adopt(*new AST::ListValue({ argv_ })); auto& values = static_cast<AST::ListValue*>(argv_.ptr())->values(); if ((size_t)count > values.size()) { |