summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2012-02-19 17:59:48 +0100
committerFlorian Pritz <bluewind@xinu.at>2012-02-19 17:59:48 +0100
commit79c687a7dd93e89be141e33d9f0de72461ae2802 (patch)
tree56bcc23181d82fc6c19c739daceef3d4dd4c7c51
parentf5bc76ce2fd240325ffc2d0a5e71a27231de2149 (diff)
file/cron: close dir handles after use
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rw-r--r--application/controllers/file.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/application/controllers/file.php b/application/controllers/file.php
index c83805600..cb2a27a9d 100644
--- a/application/controllers/file.php
+++ b/application/controllers/file.php
@@ -310,10 +310,13 @@ class File extends CI_Controller {
}
}
+ closedir($dh);
+
if ($empty) {
rmdir($upload_path."/".$dir);
}
}
+ closedir($outer_dh);
}
}