Commit 7f2a8dc2cb2619aae4d4d971eaf2e1f72b48949d

Stefan Sperling 2019-05-12T15:33:37

plug fd leak in got_path_dir_is_empty()

1
2
3
4
5
6
7
8
9
10
11
12
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;
 }