diff options
author | Brandon Casey <drafnel@gmail.com> | 2008-05-17 23:00:01 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-05-18 21:38:29 -0700 |
commit | 689ef4d42e1adf409b632ed5c36beda4852a4720 (patch) | |
tree | 1996cb895fb0bae0cfc01b9a96d01d731d1a7659 /builtin-clone.c | |
parent | a73bc1275bb0939c51c496b1d50c516e6314eab2 (diff) | |
download | git-689ef4d42e1adf409b632ed5c36beda4852a4720.tar.gz git-689ef4d42e1adf409b632ed5c36beda4852a4720.tar.xz |
builtin-clone.c: Need to closedir() in copy_or_link_directory()
So not to leak file descriptors, close the directory after opening it.
Signed-off-by: Brandon Casey <drafnel@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-clone.c')
-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 8713128e7..8936a5181 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, |