Mercurial > octave
changeset 1469:5e92628fc136
[project @ 1995-09-22 08:38:13 by jwe]
author | jwe |
---|---|
date | Fri, 22 Sep 1995 08:38:13 +0000 |
parents | cdb87ef617e8 |
children | 3d314307e65f |
files | src/dirfns.cc |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/dirfns.cc Fri Sep 22 08:09:53 1995 +0000 +++ b/src/dirfns.cc Fri Sep 22 08:38:13 1995 +0000 @@ -425,10 +425,11 @@ ls_buf << ends; char *ls_command = ls_buf.str (); - delete [] ls_command; iprocstream *cmd = new iprocstream (ls_command); + delete [] ls_command; + add_unwind_protect (cleanup_iprocstream, cmd); if (cmd && *cmd)