diff options
-rw-r--r-- | builtin-clone.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin-clone.c b/builtin-clone.c index 8713128e72..8936a51810 100644 --- a/builtin-clone.c +++ b/builtin-clone.c @@ -215,6 +215,7 @@ static void copy_or_link_directory(char *src, char *dest) die("failed to create link %s\n", dest); } } + closedir(dir); } static const struct ref *clone_local(const char *src_repo, |