Fix missing closedir() in Find_File::Find_Internal()

Change-Id: Ie74570d3203be347390ca74bd00429bde87d6741
Signed-off-by: Vojtech Bocek <vbocek@gmail.com>
diff --git a/find_file.cpp b/find_file.cpp
index f56f243..8ae0a51 100644
--- a/find_file.cpp
+++ b/find_file.cpp
@@ -33,7 +33,7 @@
 }
 
 string Find_File::Find_Internal(const string& filename, const string& starting_path) {
-	DIR *d = opendir(starting_path.c_str());
+	DIR *d;
 	string new_path, return_path;
 	vector<string> dirs;
 	vector<string> symlinks;
@@ -45,6 +45,7 @@
 	}
 	searched_dirs.push_back(starting_path);
 
+	d = opendir(starting_path.c_str());
 	if (d == NULL) {
 		LOGERR("Find_File: Error opening '%s'\n", starting_path.c_str());
 		return "";