enscript/enscript-doublefree.patch
Adam Tkac 9068b0453c - updated patches due rpm 4.6
- enscript -w is handled well (#457719)
- mkafmmap -V is handled well (#457720)
2008-08-08 11:31:07 +00:00

16 lines
482 B
Diff

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. */