tools/check-bolt.c: don't leak open directory.

Thanks valgrind!

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2023-01-12 14:21:38 +10:30
parent da3506e6a0
commit 885506765e

View File

@ -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;
}