cups-filters/cups-filters-ipp-leak.patch
DistroBaker efcac2932d Merged update from upstream sources
This is an automated DistroBaker update from upstream sources.
If you do not know what this is about or would like to opt out,
contact the OSCI team.

Source: https://src.fedoraproject.org/rpms/cups-filters.git#12bd6655362f7e0f8790c34a208d10ca6333f99e
2020-11-24 06:11:48 +00:00

23 lines
538 B
Diff

diff --git a/utils/cups-browsed.c b/utils/cups-browsed.c
index 0c40112..450179b 100644
--- a/utils/cups-browsed.c
+++ b/utils/cups-browsed.c
@@ -6417,13 +6417,14 @@ on_job_state (CupsNotifier *object,
}
break;
}
+
+ ippDelete(response);
+ response = NULL;
+
if (pstate == IPP_PRINTER_IDLE && paccept) {
q->last_printer = i;
break;
}
-
- ippDelete(response);
- response = NULL;
} else
debug_printf("IPP request to %s:%d failed.\n", p->host,
p->port);