cups-filters/cups-filters-document-format-leak.patch
2020-11-24 06:53:42 +01:00

16 lines
708 B
Diff

diff --git a/utils/cups-browsed.c b/utils/cups-browsed.c
index f246453..0c40112 100644
--- a/utils/cups-browsed.c
+++ b/utils/cups-browsed.c
@@ -6593,7 +6593,10 @@ on_job_state (CupsNotifier *object,
cupsEncodeOptions2(request, num_options, options, IPP_TAG_OPERATION);
cupsEncodeOptions2(request, num_options, options, IPP_TAG_PRINTER);
ippDelete(cupsDoRequest(conn, request, "/admin/"));
+
cupsFreeOptions(num_options, options);
+ free(document_format);
+
if (cupsLastError() > IPP_STATUS_OK_EVENTS_COMPLETE) {
debug_printf("ERROR: Unable to set \"" CUPS_BROWSED_DEST_PRINTER
"-default\" option to communicate the destination server for this job (%s)!\n",