Index: wp-includes/ms-functions.php
===================================================================
--- wp-includes/ms-functions.php	(revision 12605)
+++ wp-includes/ms-functions.php	(working copy)
@@ -1733,6 +1733,7 @@
 					if($handlesize >= 0) {
 						$size += $handlesize;
 					} else {
+						closedir($handle);
 						return false;
 					}
 				}
