Git development
 help / color / mirror / Atom feed
* [PATCH] sha1_file.c;prepare_packed_git_one() - fix DIR leak
@ 2005-07-06  6:52 Junio C Hamano
  2005-07-06  8:11 ` [PATCH] clone-pack.c:write_one_ref() - Create leading directories Junio C Hamano
  0 siblings, 1 reply; 2+ messages in thread
From: Junio C Hamano @ 2005-07-06  6:52 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: git

The function calls opendir() without a matching closedir().

Signed-off-by: Junio C Hamano <junkio@cox.net>
---

 sha1_file.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

7a47797264a0be7955f3422a6e79e3311ab2775f
diff --git a/sha1_file.c b/sha1_file.c
--- a/sha1_file.c
+++ b/sha1_file.c
@@ -463,6 +463,7 @@ static void prepare_packed_git_one(char 
 		p->next = packed_git;
 		packed_git = p;
 	}
+	closedir(dir);
 }
 
 void prepare_packed_git(void)

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-07-06  8:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-06  6:52 [PATCH] sha1_file.c;prepare_packed_git_one() - fix DIR leak Junio C Hamano
2005-07-06  8:11 ` [PATCH] clone-pack.c:write_one_ref() - Create leading directories Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox