Commit 689ef4d4 authored by Brandon Casey's avatar Brandon Casey Committed by Junio C Hamano

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: default avatarBrandon Casey <>
Signed-off-by: default avatarJunio C Hamano <>
parent a73bc127
......@@ -215,6 +215,7 @@ static void copy_or_link_directory(char *src, char *dest)
die("failed to create link %s\n", dest);
static const struct ref *clone_local(const char *src_repo,
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment