components/enscript/patches/enscript-doublefree.patch
author Girish Moodalbail <Girish.Moodalbail@oracle.COM>
Fri, 18 Apr 2014 18:22:59 -0700
branchs11-update
changeset 3088 3f570a6d19b9
parent 2723 138732f62341
permissions -rw-r--r--
18610375 Terminating a VM instance doesn't release floating ip associated with it 17975048 'neutron subnet-create' has problems with gateway IPs

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