"repeat 0 (foo)" results in a minor memory leak and a major FD leak; fix
for the FD leak attached.  I havn't found the memory leak yet.  (It's an
annoying one since I often use "repeat 0 (command)" to search for memory
leaks in my own code.)

-- 
Glenn Maynard
Index: CmdExec.cc
===================================================================
RCS file: /home/lav/cvsroot/lftp/src/CmdExec.cc,v
retrieving revision 1.88
diff -u -r1.88 CmdExec.cc
--- CmdExec.cc  2002/01/04 12:31:29     1.88
+++ CmdExec.cc  2002/07/09 22:24:04
@@ -814,7 +814,7 @@
    delete args;
    delete output;
    xfree(cmd_buf);
-   xfree(cwd);
+   delete cwd;
    if(cwd_owner==this)
       cwd_owner=0;
    xfree(old_cwd);

Reply via email to