There were four file descriptor leaks in the old versions of the
compressed folders patch.  The attached patch fixes this problem.

The patch can be applied after most versions of the compressed folders 
patch it should work with 0.95.*, 0.96.* and 1.0pre*.

Ciao

        Roland

-- 
 * [EMAIL PROTECTED] * http://www.spinnaker.de/ *
 PGP: 1024/DD08DD6D   2D E7 CC DE D5 8D 78 BE  3C A0 A4 F1 4B 09 CE AF
--- compress.c.org      Fri Sep 24 09:42:23 1999
+++ compress.c  Wed Sep 29 10:06:53 1999
@@ -213,6 +213,7 @@
   mutt_system(echo_cmd);
   rc = mutt_system (cmd);
   mx_unlock_file (ctx->realpath, fileno (fp), 1);
+  fclose (fp);
 
   if (rc)
   {
@@ -332,6 +333,7 @@
   }
 
   mx_unlock_file (ctx->realpath, fileno (fp), 1);
+  fclose (fp);
 
   safe_free ((void **)&cmd);
   
@@ -403,10 +405,12 @@
                ctx->path);
     safe_free ((void **)&cmd);
     mx_unlock_file (ctx->realpath, fileno (fp), 1);
+    fclose (fp);
     return (-1);
   }
 
   mx_unlock_file (ctx->realpath, fileno (fp), 1);
+  fclose (fp);
   remove_file (ctx);
   restore_path (ctx);
   safe_free ((void **)&cmd);

PGP signature

Reply via email to