changeset 23629:b18805350473

avoid anonymous function handle memory leak * pt-fcn-handle.cc (tree_anon_fcn_handle::~tree_anon_fcn_handle): Also delete m_scope.
author John W. Eaton <jwe@octave.org>
date Fri, 16 Jun 2017 18:16:17 -0400
parents fca2f775ab4c
children 8a47d4735655
files libinterp/parse-tree/pt-fcn-handle.cc
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/parse-tree/pt-fcn-handle.cc	Fri Jun 16 16:38:47 2017 -0400
+++ b/libinterp/parse-tree/pt-fcn-handle.cc	Fri Jun 16 18:16:17 2017 -0400
@@ -67,6 +67,7 @@
   {
     delete m_parameter_list;
     delete m_expression;
+    delete m_scope;
   }
 
   tree_expression *