From: Jann Horn Date: Mon, 23 May 2016 00:41:36 +0000 (+0200) Subject: fix fd leak X-Git-Url: http://git.thejh.net/?a=commitdiff_plain;h=a005b735551edafb2bd47260bf34cccbc119fc9b;p=cleanmysourcetree.git fix fd leak --- diff --git a/cleanmysourcetree.c b/cleanmysourcetree.c index f324059..f989b72 100644 --- a/cleanmysourcetree.c +++ b/cleanmysourcetree.c @@ -115,6 +115,7 @@ static void add_files_recursive(const char *current_path) { } } add_dir(current_path); + closedir(d); } volatile bool child_quit = false;