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>maint
parent
a73bc1275b
commit
689ef4d42e
|
@ -215,6 +215,7 @@ static void copy_or_link_directory(char *src, char *dest)
|
||||||
die("failed to create link %s\n", dest);
|
die("failed to create link %s\n", dest);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
closedir(dir);
|
||||||
}
|
}
|
||||||
|
|
||||||
static const struct ref *clone_local(const char *src_repo,
|
static const struct ref *clone_local(const char *src_repo,
|
||||||
|
|
Loading…
Reference in New Issue