Mercurial > hg > octave-nkf
changeset 5874:210c5c98c403
[project @ 2006-07-01 02:33:45 by jwe]
author | jwe |
---|---|
date | Sat, 01 Jul 2006 02:33:46 +0000 |
parents | b6ef36e92701 |
children | f6ddc0ee2315 |
files | src/ChangeLog src/ov-base.cc |
diffstat | 2 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,8 @@ 2006-06-30 John W. Eaton <jwe@octave.org> + * ov-base.cc (octave_base_value::numeric_assign): + Avoid memory leak when converting LHS. + * oct-hist.cc (do_history, initialize_history, Fhistory_file): Don't perform tilde expansion on history file name.
--- a/src/ov-base.cc +++ b/src/ov-base.cc @@ -934,11 +934,13 @@ if (cf) { - octave_base_value *tmp (cf (*this)); + octave_base_value *tmp = cf (*this); if (tmp) { - retval = tmp->subsasgn (type, idx, rhs); + octave_value val (tmp); + + retval = val.subsasgn (type, idx, rhs); done = (! error_state); }