summaryrefslogtreecommitdiff
path: root/sha1_file.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <junkio@cox.net>2005-07-05 23:52:17 -0700
committerLibravatar Linus Torvalds <torvalds@g5.osdl.org>2005-07-06 08:47:08 -0700
commit5b35bcd53a1cf12c657197d15db0fb2a5dca7b96 (patch)
tree44bf49743d8d66a2c16914a05932c173f3bb1457 /sha1_file.c
parentMerge master.kernel.org:/pub/scm/gitk/gitk (diff)
downloadtgif-5b35bcd53a1cf12c657197d15db0fb2a5dca7b96.tar.xz
[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)