From: Junio C Hamano Date: Wed, 06 Jul 2005 06:52:17 GMT Subject: [PATCH] sha1_file.c;prepare_packed_git_one() - fix DIR leak Message-ID: <7voe9gxw7y.fsf@assigned-by-dhcp.cox.net> The function calls opendir() without a matching closedir(). Signed-off-by: Junio C Hamano --- sha1_file.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) 7a47797264a0be7955f3422a6e79e3311ab2775f diff --git a/sha1_file.c b/sha1_file.c --- a/sha1_file.c +++ b/sha1_file.c @@ -463,6 +463,7 @@ static void prepare_packed_git_one(char p->next = packed_git; packed_git = p; } + closedir(dir); } void prepare_packed_git(void)