tags 397537 patch
thanks

The attached patch removes the unneeded fclose which is causing this.

-- 
Tim Retout <[EMAIL PROTECTED]>
Remove unneeded fclose() in --toc code, which was causing a double free.
 -- Tim Retout <[EMAIL PROTECTED]>  Sat, 27 Oct 2007 00:07:21 +0100

Index: enscript-1.6.4/src/main.c
===================================================================
--- enscript-1.6.4.orig/src/main.c      2007-10-26 23:56:48.000000000 +0100
+++ enscript-1.6.4/src/main.c   2007-10-26 23:57:13.000000000 +0100
@@ -1735,9 +1735,6 @@
              process_file (_("Table of Contents"), &is, 1);
              is_close (&is);
            }
-
-         /* Clean up toc file. */
-         fclose (toc_fp);
        }
 
       /* Give trailer a chance to dump itself. */

Reply via email to