projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b43d447
)
[PATCH] sha1_file.c;prepare_packed_git_one() - fix DIR leak
author
Junio C Hamano
<junkio@cox.net>
Wed, 6 Jul 2005 06:52:17 +0000
(23:52 -0700)
committer
Linus 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
patch
|
blob
|
history
diff --git
a/sha1_file.c
b/sha1_file.c
index bbb749c561ebfe6cff8240f99b8902e526dda368..1747276647c7551fd3fe7b1a20612341c0d00d6f 100644
(file)
--- 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)