changeset 16016:9194bb707d63

Plug memory leak in edit_history. * libinterp/interpfcn/oct-hist.cc(do_edit_history): delete string returned from edit_history_readline.
author Rik <rik@octave.org>
date Thu, 07 Feb 2013 17:21:10 -0800
parents d910b9211cca
children 06187a0b7a62
files libinterp/interpfcn/oct-hist.cc
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/interpfcn/oct-hist.cc	Thu Feb 07 16:46:01 2013 -0800
+++ b/libinterp/interpfcn/oct-hist.cc	Thu Feb 07 17:21:10 2013 -0800
@@ -532,6 +532,8 @@
         }
       else
         edit_history_add_hist (line);
+
+      delete [] line;
     }
 
   file.close ();