summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/aggregator.module2
-rw-r--r--modules/aggregator/aggregator.module2
-rw-r--r--modules/cloud.module2
-rw-r--r--modules/import.module2
4 files changed, 8 insertions, 0 deletions
diff --git a/modules/aggregator.module b/modules/aggregator.module
index b4f6f315b..b782dad0b 100644
--- a/modules/aggregator.module
+++ b/modules/aggregator.module
@@ -144,6 +144,7 @@ function import_refresh($feed) {
while (!feof($fp)) {
$data .= fgets($fp, 128);
}
+ fclose($fp);
// initialize the translation table:
$tt = array_flip(get_html_translation_table(HTML_ENTITIES));
@@ -357,6 +358,7 @@ function import_fd_collect($edit) {
while (!feof($fp)) {
$data .= fgets($fp, 128);
}
+ fclose($fp);
// initialize the translation table:
$tt = array_flip(get_html_translation_table(HTML_ENTITIES));
diff --git a/modules/aggregator/aggregator.module b/modules/aggregator/aggregator.module
index b4f6f315b..b782dad0b 100644
--- a/modules/aggregator/aggregator.module
+++ b/modules/aggregator/aggregator.module
@@ -144,6 +144,7 @@ function import_refresh($feed) {
while (!feof($fp)) {
$data .= fgets($fp, 128);
}
+ fclose($fp);
// initialize the translation table:
$tt = array_flip(get_html_translation_table(HTML_ENTITIES));
@@ -357,6 +358,7 @@ function import_fd_collect($edit) {
while (!feof($fp)) {
$data .= fgets($fp, 128);
}
+ fclose($fp);
// initialize the translation table:
$tt = array_flip(get_html_translation_table(HTML_ENTITIES));
diff --git a/modules/cloud.module b/modules/cloud.module
index d3670e263..d17f2eafa 100644
--- a/modules/cloud.module
+++ b/modules/cloud.module
@@ -58,6 +58,8 @@ function cloud_update($site) {
if (abs($site[size] - strlen($data)) > 50) {
db_query("UPDATE site SET size = '". strlen($data) ."', timestamp = '". time() ."' WHERE link = '". check_input($site[link]) ."'");
}
+
+ fclose($fp);
}
else {
watchdog("warning", "cloud: failed to syndicate from '$site[name]'". ($errstr ? ": $errstr" : ""));
diff --git a/modules/import.module b/modules/import.module
index b4f6f315b..b782dad0b 100644
--- a/modules/import.module
+++ b/modules/import.module
@@ -144,6 +144,7 @@ function import_refresh($feed) {
while (!feof($fp)) {
$data .= fgets($fp, 128);
}
+ fclose($fp);
// initialize the translation table:
$tt = array_flip(get_html_translation_table(HTML_ENTITIES));
@@ -357,6 +358,7 @@ function import_fd_collect($edit) {
while (!feof($fp)) {
$data .= fgets($fp, 128);
}
+ fclose($fp);
// initialize the translation table:
$tt = array_flip(get_html_translation_table(HTML_ENTITIES));