aboutsummaryrefslogtreecommitdiffstats
path: root/sha1_file.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-07-05 23:52:17 -0700
committerLinus Torvalds <torvalds@g5.osdl.org>2005-07-06 08:47:08 -0700
commit5b35bcd53a1cf12c657197d15db0fb2a5dca7b96 (patch)
tree44bf49743d8d66a2c16914a05932c173f3bb1457 /sha1_file.c
parentb43d44779bf98977b211256f936d0edda8a9625a (diff)
downloadgit-5b35bcd53a1cf12c657197d15db0fb2a5dca7b96.tar.gz
[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>
Diffstat (limited to 'sha1_file.c')
-rw-r--r--sha1_file.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sha1_file.c b/sha1_file.c
index bbb749c561..1747276647 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)