summaryrefslogtreecommitdiff
path: root/sha1_file.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-07-06 06:52:17 (GMT)
committerLinus Torvalds <torvalds@g5.osdl.org>2005-07-06 15:47:08 (GMT)
commit5b35bcd53a1cf12c657197d15db0fb2a5dca7b96 (patch)
tree44bf49743d8d66a2c16914a05932c173f3bb1457 /sha1_file.c
parentb43d44779bf98977b211256f936d0edda8a9625a (diff)
downloadgit-5b35bcd53a1cf12c657197d15db0fb2a5dca7b96.zip
git-5b35bcd53a1cf12c657197d15db0fb2a5dca7b96.tar.gz
git-5b35bcd53a1cf12c657197d15db0fb2a5dca7b96.tar.bz2
[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 bbb749c..1747276 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)