aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/favicons.php1
-rw-r--r--lib/lib_rss.php1
2 files changed, 0 insertions, 2 deletions
diff --git a/lib/favicons.php b/lib/favicons.php
index c28cdfc7f..3072874d7 100644
--- a/lib/favicons.php
+++ b/lib/favicons.php
@@ -18,7 +18,6 @@ function isImgMime(string $content): bool {
}
$content = finfo_buffer($fInfo, $content);
$isImage = str_contains($content ?: '', 'image');
- finfo_close($fInfo);
return $isImage;
}
diff --git a/lib/lib_rss.php b/lib/lib_rss.php
index 480152400..59e7abba0 100644
--- a/lib/lib_rss.php
+++ b/lib/lib_rss.php
@@ -642,7 +642,6 @@ function httpGet(string $url, string $cachePath, string $type = 'html', array $a
$c_effective_url = curl_getinfo($ch, CURLINFO_EFFECTIVE_URL);
$c_redirect_count = curl_getinfo($ch, CURLINFO_REDIRECT_COUNT);
$c_error = curl_error($ch);
- curl_close($ch);
$parser = new \SimplePie\HTTP\Parser(is_string($response) ? $response : '');
if ($parser->parse()) {