[PATCH] sha1_file.c;prepare_packed_git_one() - fix DIR leak
- From
Junio C Hamano <junkio@cox.net>
- Date
- Jul 6, 2005, 06:52 UTC
- Message-ID
- <7voe9gxw7y.fsf@assigned-by-dhcp.cox.net>
The function calls opendir() without a matching closedir().
Signed-off-by: Junio C Hamano <junkio@cox.net> ---
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)