From 4dc68aa920bb4ea8d7ed769e8ec3c69fc45fee3f Mon Sep 17 00:00:00 2001 From: yan_kos Date: Sat, 15 Oct 2016 16:20:47 +0300 Subject: [PATCH] FIX directory not closing #100 --- library/HTMLPurifier/DefinitionCache/Serializer.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/HTMLPurifier/DefinitionCache/Serializer.php b/library/HTMLPurifier/DefinitionCache/Serializer.php index 7fb106f3..952e48d4 100644 --- a/library/HTMLPurifier/DefinitionCache/Serializer.php +++ b/library/HTMLPurifier/DefinitionCache/Serializer.php @@ -112,6 +112,7 @@ class HTMLPurifier_DefinitionCache_Serializer extends HTMLPurifier_DefinitionCac } unlink($dir . '/' . $filename); } + closedir($dh); return true; } @@ -142,6 +143,7 @@ class HTMLPurifier_DefinitionCache_Serializer extends HTMLPurifier_DefinitionCac unlink($dir . '/' . $filename); } } + closedir($dh); return true; }