Blame SOURCES/cups-browsed-socket-leak.patch

5fc268
diff --git a/utils/cups-browsed.c b/utils/cups-browsed.c
5fc268
index c6c257e..2cc64dd 100644
5fc268
--- a/utils/cups-browsed.c
5fc268
+++ b/utils/cups-browsed.c
5fc268
@@ -2747,6 +2747,13 @@ on_printer_state_changed (CupsNotifier *object,
5fc268
 	if (i == q->last_printer)
5fc268
 	  break;
5fc268
       }
5fc268
+
5fc268
+      /* Close remote connection */
5fc268
+      if (http) {
5fc268
+        httpClose(http);
5fc268
+        http = NULL;
5fc268
+      }
5fc268
+
5fc268
       /* Find the ID of the current job */
5fc268
       request = ippNewRequest(IPP_GET_JOBS);
5fc268
       httpAssembleURIf(HTTP_URI_CODING_ALL, uri, sizeof(uri), "ipp", NULL,