diff --git a/function.php b/function.php index e15fbe36..db05489a 100644 --- a/function.php +++ b/function.php @@ -82,6 +82,7 @@ if (!function_exists('recursive_directory')) { call_user_func($callback, $directoryIterator); } } + unset($directoryIterators); }