Mercurial > octave-nkf
diff src/dirfns.cc @ 1469:5e92628fc136
[project @ 1995-09-22 08:38:13 by jwe]
author | jwe |
---|---|
date | Fri, 22 Sep 1995 08:38:13 +0000 |
parents | 2f85a175308f |
children | 89c587478067 |
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)