summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a73bc12)
raw | patch | inline | side by side (parent: a73bc12)
author | Brandon Casey <drafnel@gmail.com> | |
Sun, 18 May 2008 04:00:01 +0000 (23:00 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 19 May 2008 04:38:29 +0000 (21:38 -0700) |
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>
Signed-off-by: Brandon Casey <drafnel@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-clone.c | patch | blob | history |
diff --git a/builtin-clone.c b/builtin-clone.c
index 8713128e72da5681104434f944defb7f373db7e8..8936a51810fb4d1886187bc00507edc0287198f4 100644 (file)
--- a/builtin-clone.c
+++ b/builtin-clone.c
die("failed to create link %s\n", dest);
}
}
+ closedir(dir);
}
static const struct ref *clone_local(const char *src_repo,