From: Junio C Hamano Date: Wed, 6 Jul 2005 06:52:17 +0000 (-0700) Subject: [PATCH] sha1_file.c;prepare_packed_git_one() - fix DIR leak X-Git-Tag: v0.99~59 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5b35bcd53a1cf12c657197d15db0fb2a5dca7b96;p=git.git [PATCH] sha1_file.c;prepare_packed_git_one() - fix DIR leak The function calls opendir() without a matching closedir(). Signed-off-by: Junio C Hamano Signed-off-by: Linus Torvalds --- diff --git a/sha1_file.c b/sha1_file.c index bbb749c56..174727664 100644 --- a/sha1_file.c +++ b/sha1_file.c @@ -463,6 +463,7 @@ static void prepare_packed_git_one(char *objdir) p->next = packed_git; packed_git = p; } + closedir(dir); } void prepare_packed_git(void)