2f2854
diff -up libproxy-0.4.11/libproxy/url.cpp.fdleak libproxy-0.4.11/libproxy/url.cpp
2f2854
--- libproxy-0.4.11/libproxy/url.cpp.fdleak	2013-09-19 08:45:48.718145364 -0400
2f2854
+++ libproxy-0.4.11/libproxy/url.cpp	2013-09-19 08:46:31.374147676 -0400
2f2854
@@ -403,6 +403,7 @@ char* url::get_pac() {
2f2854
 				buffer = NULL;
2f2854
 			}
2f2854
 		}
2f2854
+		close (sock);
2f2854
 		return buffer;
2f2854
 	}
2f2854
 
2f2854
@@ -495,7 +496,7 @@ char* url::get_pac() {
2f2854
 	}
2f2854
 
2f2854
 	// Clean up
2f2854
-	shutdown(sock, SHUT_RDWR);
2f2854
+	close(sock);
2f2854
 	return buffer;
2f2854
 }
2f2854