commit 2e7d6a12a91544e8725575ae705c6824b107e8fa
parent 29afdd0b216fefa939bee62691545e63bd29b642
Author: Joris Vink <joris@coders.se>
Date: Wed, 13 Aug 2014 14:32:57 +0200
closedir() when we're ready traversing it
Diffstat:
src/cli.c | 2 ++
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/cli.c b/src/cli.c
@@ -713,6 +713,8 @@ cli_find_files(const char *path, void (*cb)(char *, struct dirent *))
cb(fpath, dp);
}
}
+
+ closedir(d);
}
static void