Mercurial > octave-nkf
changeset 8369:584d9e80556b
add missing delete
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Thu, 04 Dec 2008 09:27:17 +0100 |
parents | c72c1c9bccdc |
children | 34960ba08a81 |
files | liboctave/ChangeLog liboctave/idx-vector.cc |
diffstat | 2 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/liboctave/ChangeLog Thu Dec 04 09:15:17 2008 +0100 +++ b/liboctave/ChangeLog Thu Dec 04 09:27:17 2008 +0100 @@ -1,3 +1,7 @@ +2008-12-04 Jaroslav Hajek <highegg@gmail.com> + + * idx-vector.cc (idx-vector::complement): Add missing delete. + 2008-12-04 Jaroslav Hajek <highegg@gmail.com> * dbleQRP.cc (QRP::QRP): Call DGEQP3 rather than DGEQPF.
--- a/liboctave/idx-vector.cc Thu Dec 04 09:15:17 2008 +0100 +++ b/liboctave/idx-vector.cc Thu Dec 04 09:27:17 2008 +0100 @@ -522,6 +522,8 @@ octave_idx_type len = cnt, *data = new octave_idx_type[len]; for (octave_idx_type i = 0, j = 0; i < n; i++) if (left[i]) data[j++] = i; + + delete left; return new idx_vector_rep (data, len, len ? data[len-1]+1 : 0,