From: Michael R Sweet Date: Wed, 10 Mar 2021 20:30:54 +0000 (-0500) Subject: Free emulations (Issue #124) X-Git-Tag: v2.4b1~196 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2bc7b0ef2f0cff4e046dccbcaecef9addd40ca88;p=thirdparty%2Fcups.git Free emulations (Issue #124) --- 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);