[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:
parent
b43d44779b
commit
5b35bcd53a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user