From 2bc7b0ef2f0cff4e046dccbcaecef9addd40ca88 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Wed, 10 Mar 2021 15:30:54 -0500 Subject: [PATCH] Free emulations (Issue #124) --- CHANGES.md | 1 + cups/ppd.c | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGES.md b/CHANGES.md index 37745473ee..61dad0d3fb 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -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`. diff --git a/cups/ppd.c b/cups/ppd.c index beb45a6ebf..c255b93506 100644 --- a/cups/ppd.c +++ b/cups/ppd.c @@ -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); -- 2.47.3