From 885506765e27ce798768454c14f57aec014e933a Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Thu, 12 Jan 2023 14:21:38 +1030 Subject: [PATCH] tools/check-bolt.c: don't leak open directory. Thanks valgrind! Signed-off-by: Rusty Russell --- tools/check-bolt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/check-bolt.c b/tools/check-bolt.c index 2149caf89..3e60510e8 100644 --- a/tools/check-bolt.c +++ b/tools/check-bolt.c @@ -79,6 +79,7 @@ static bool get_files(const char *dir, const char *subdir, e->d_name))); tal_arr_expand(files, bf); } + closedir(d); return true; }