]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
ippeveps: fix handle leak 1663/head
authorElizaveta Tereshkina <teryoshkina.ea@gmail.com>
Fri, 7 Aug 2026 12:48:14 +0000 (15:48 +0300)
committerElizaveta Tereshkina <teryoshkina.ea@gmail.com>
Fri, 7 Aug 2026 12:48:14 +0000 (15:48 +0300)
In the 'jpeg_to_ps' function close the 'fd' handle
by adding a missing 'fclose'.
Signed-off-by: Elizaveta Tereshkina <teryoshkina.ea@gmail.com>
tools/ippeveps.c

index 1584c2c28053460c7b758589712e82a2bb4ec203..3c414d93f534bf704c05e4a326b76691374cd97e 100644 (file)
@@ -768,6 +768,9 @@ jpeg_to_ps(const char    *filename, /* I - Filename */
     puts("grestore showpage");
   }
 
+  if (fd > 0)
+    close(fd);
+
   dsc_trailer(0);
 
   return (0);