# HG changeset patch # User jwe # Date 811759093 0 # Node ID 5e92628fc136c81f03ca4dec0abeb55f3f11056a # Parent cdb87ef617e8746178f1697ee72376a2c91c4b8d [project @ 1995-09-22 08:38:13 by jwe] diff -r cdb87ef617e8 -r 5e92628fc136 src/dirfns.cc --- 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)