[PATCH] sha1_file.c;prepare_packed_git_one() - fix DIR leak
authorJunio C Hamano <junkio@cox.net>
Wed, 6 Jul 2005 06:52:17 +0000 (23:52 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 6 Jul 2005 15:47:08 +0000 (08:47 -0700)
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>
sha1_file.c

index bbb749c..1747276 100644 (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)