plug fd leak in got_path_dir_is_empty()
diff --git a/lib/path.c b/lib/path.c
index 9a681d1..33840a4 100644
--- a/lib/path.c
+++ b/lib/path.c
@@ -346,6 +346,7 @@ got_path_dir_is_empty(const char *dir)
break;
}
+ closedir(d);
return empty;
}