diff options
author | Junio C Hamano <junkio@cox.net> | 2005-07-05 23:52:17 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-07-06 08:47:08 -0700 |
commit | 5b35bcd53a1cf12c657197d15db0fb2a5dca7b96 (patch) | |
tree | 44bf49743d8d66a2c16914a05932c173f3bb1457 /sha1_file.c | |
parent | Merge master.kernel.org:/pub/scm/gitk/gitk (diff) | |
download | tgif-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.c | 1 |
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) |