components/enscript/patches/enscript-doublefree.patch
author Jan Noha <jan.noha@oracle.com>
Thu, 02 Oct 2014 01:28:05 -0700
changeset 2171 b7344f27cbbc
parent 1132 a62391631ea1
permissions -rw-r--r--
15766313 SUNBT7129916 ntp man pages have blank space at the top

diff -up enscript-1.6.4/src/main.c.doublefree enscript-1.6.4/src/main.c
--- enscript-1.6.4/src/main.c.doublefree	2008-08-08 11:10:07.000000000 +0200
+++ enscript-1.6.4/src/main.c	2008-08-08 11:11:51.000000000 +0200
@@ -1714,8 +1714,9 @@ name             width\theight\tllx\tlly
 	      is_close (&is);
 	    }
 
-	  /* Clean up toc file. */
-	  fclose (toc_fp);
+	  else
+	    /* Clean up toc file. */
+	    fclose (toc_fp);
 	}
 
       /* Give trailer a chance to dump itself. */