From 78deb2cd664fa20af429086cb5c327583d9b0a67 Mon Sep 17 00:00:00 2001 From: Nathan Gass Date: Thu, 20 Aug 2020 09:25:45 +0200 Subject: fix 3538e25, we should not leak memory per url --- it_url.class | 3 +++ 1 file changed, 3 insertions(+) (limited to 'it_url.class') diff --git a/it_url.class b/it_url.class index 54128dd..8b2bd2b 100644 --- a/it_url.class +++ b/it_url.class @@ -421,12 +421,15 @@ static function get_multi($p=null) if (it::match(self::$retryable, curl_getinfo($handles[$key], CURLINFO_RESPONSE_CODE)) && $retries[$key]++ < $p['retries']) $sleepuntils[$key] = microtime(true) + $p['retrysleep']; + else + unset($urls[$key]); $closehandle($key); } else if($retries[$key]++ < $p['retries']) { $closehandle($key); # closehandle must be called before addhandle as we use the same key $sleepuntils[$key] = microtime(true) + $p['retrysleep']; } else { $results_unordered[$key] = false; + unset($urls[$key]); $closehandle($key); } -- cgit v1.2.3