[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 <junkio@cox.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
Junio C Hamano 2005-07-05 23:52:17 -07:00 committed by Linus Torvalds
parent b43d44779b
commit 5b35bcd53a

View file

@ -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)