From 033e29caf3862206a1ff7516c906760dff82d574 Mon Sep 17 00:00:00 2001 From: mohitmo Date: Wed, 17 Jun 2020 13:11:36 +0530 Subject: [PATCH] delete response only when not NULL --- utils/cups-browsed.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/cups-browsed.c b/utils/cups-browsed.c index f2cc63b11..e2defc6c6 100644 --- a/utils/cups-browsed.c +++ b/utils/cups-browsed.c @@ -7833,10 +7833,10 @@ gboolean update_cups_queues(gpointer unused) { else { debug_printf ("CUPS queue with URI %s found, but with \"printer-name\" %s", uri, ippGetString(attr, 0, NULL)); } + + ippDelete(response); } - ippDelete(response); - if (dest) { /* CUPS has found a queue with this name. Either CUPS generates a temporary queue here or we have already -- 2.47.2