]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Free emulations (Issue #124)
authorMichael R Sweet <michael.r.sweet@gmail.com>
Wed, 10 Mar 2021 20:30:54 +0000 (15:30 -0500)
committerMichael R Sweet <msweet@msweet.org>
Thu, 11 Mar 2021 00:25:28 +0000 (19:25 -0500)
CHANGES.md
cups/ppd.c

index 70db81782225e17e7fa0d58663214ba03bd4c8b8..eadccfe235542d6eb149d8bf12c6ea3e93560959 100644 (file)
@@ -19,6 +19,7 @@ CUPS v2.4rc1 (Pending)
 - The PPD functions now treat boolean values as case-insensitive (Issue #106)
 - Temporary queue names no longer end with an underscore (Issue #110)
 - The USB backend now runs as root (Issue #121)
+- Fixed a PPD memory leak caused by emulator definitions (Issue #124)
 - Removed support for the (long deprecated and unused) `FontPath`,
   `LPDConfigFile`, `RIPCache`, and `SMBConfigFile` directives in `cupsd.conf`
   and `cups-files.conf`.
index beb45a6ebfc3727e8c20b003b1f68f840a0faaba..c255b93506130006adef0f0658b363c82e2bfc8f 100644 (file)
@@ -126,6 +126,7 @@ ppdClose(ppd_file_t *ppd)           /* I - PPD file record */
   free(ppd->lang_encoding);
   free(ppd->nickname);
   free(ppd->patches);
+  free(ppd->emulations);
   free(ppd->jcl_begin);
   free(ppd->jcl_end);
   free(ppd->jcl_ps);