===========================
+Changes in CUPS v2.4.13 (YYYY-MM-DD)
+------------------------------------
+
+- Fixed a memory leak in `httpClose` (Issue #1223)
+
+
Changes in CUPS v2.4.12 (2025-04-08)
------------------------------------
- Fixed a potential "lost PPD" condition in the scheduler (Issue #1109)
- Fixed a compressed file error handling bug (Issue #1070)
- Fixed a bug in the make-and-model whitespace trimming code (Issue #1096)
-- Fixed a removal of IPP Everywhere permanent queue if installation failed (Issue #1102)
+- Fixed a removal of IPP Everywhere permanent queue if installation failed
+ (Issue #1102)
- Fixed `ServerToken None` in scheduler (Issue #1111)
- Fixed invalid IPP keyword values created from PPD option names (Issue #1118)
- Fixed handling of "media" and "PageSize" in the same print request
void
httpClose(http_t *http) /* I - HTTP connection */
{
+ http_field_t field; /* Current field */
#ifdef HAVE_GSSAPI
OM_uint32 minor_status; /* Minor status code */
#endif /* HAVE_GSSAPI */
AuthorizationFree(http->auth_ref, kAuthorizationFlagDefaults);
#endif /* HAVE_AUTHORIZATION_H */
- httpClearFields(http);
+ for (field = HTTP_FIELD_ACCEPT_LANGUAGE; field < HTTP_FIELD_MAX; field ++)
+ {
+ free(http->default_fields[field]);
+ if (field >= HTTP_FIELD_ACCEPT_ENCODING || http->fields[field] != http->_fields[field])
+ free(http->fields[field]);
+ }
if (http->authstring && http->authstring != http->_authstring)
free(http->authstring);