From 5b35bcd53a1cf12c657197d15db0fb2a5dca7b96 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Tue, 5 Jul 2005 23:52:17 -0700 Subject: [PATCH] [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 --- sha1_file.c | 1 + 1 file changed, 1 insertion(+) 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) -- 2.30.2