enscript/enscript-doublefree.patch

16 lines
421 B
Diff

--- enscript-1.6.1/src/main.c.doublefree 2004-09-27 14:21:29.954102199 +0100
+++ enscript-1.6.1/src/main.c 2004-09-27 14:21:31.390828039 +0100
@@ -1505,9 +1505,9 @@
process_file (_("Table of Contents"), &is);
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. */