commit 7f2a8dc2cb2619aae4d4d971eaf2e1f72b48949d from: Stefan Sperling date: Sun May 12 19:33:37 2019 UTC plug fd leak in got_path_dir_is_empty() commit - 280f921b7f983840bfb1f82e25c054ce55034924 commit + 7f2a8dc2cb2619aae4d4d971eaf2e1f72b48949d blob - 9a681d1a3b3fe43270ba1cd36ff0c1aa16ceda6e blob + 33840a4b76f90e86e70a5a781d76d2396a2c448b --- lib/path.c +++ lib/path.c @@ -346,6 +346,7 @@ got_path_dir_is_empty(const char *dir) break; } + closedir(d); return empty; }