changeset 28561:2de5389fc5ab

maint: merge stable to default.
author John W. Eaton <jwe@octave.org>
date Sun, 12 Jul 2020 17:06:15 -0400
parents 9693beca8e06 (current diff) af1a9c1db88e (diff)
children b0b80efecea1
files libinterp/parse-tree/pt-eval.cc
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/parse-tree/pt-eval.cc	Sat Jul 11 15:11:42 2020 +0200
+++ b/libinterp/parse-tree/pt-eval.cc	Sun Jul 12 17:06:15 2020 -0400
@@ -3088,7 +3088,12 @@
         try
           {
             if (cmd)
-              cmd->accept (*this);
+              {
+                unwind_protect_var<const std::list<octave_lvalue> *>
+                  upv (m_lvalue_list, nullptr);
+
+                cmd->accept (*this);
+              }
             else
               {
                 if (m_echo_state)