git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch] git: fix memory leak in checkout-cache.c
@ 2005-04-14 11:26 Ingo Molnar
  2005-04-14 11:35 ` [patch] git: fix memory leak #2 " Ingo Molnar
  2005-04-14 12:08 ` [patch] git: fix memory leak in show-diff.c Ingo Molnar
  0 siblings, 2 replies; 22+ messages in thread
From: Ingo Molnar @ 2005-04-14 11:26 UTC (permalink / raw)
  To: git; +Cc: Linus Torvalds


this patch fixes a memory leak in checkout-cache.

	Ingo

Signed-off-by: Ingo Molnar <mingo@elte.hu>

--- checkout-cache.c.orig
+++ checkout-cache.c
@@ -48,6 +48,7 @@ static void create_directories(const cha
 		buf[len] = 0;
 		mkdir(buf, 0755);
 	}
+	free(buf);
 }
 
 static int create_file(const char *path, unsigned int mode)

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

end of thread, other threads:[~2005-04-18  8:24 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-14 11:26 [patch] git: fix memory leak in checkout-cache.c Ingo Molnar
2005-04-14 11:35 ` [patch] git: fix memory leak #2 " Ingo Molnar
2005-04-14 11:43   ` [patch] git: cleanup in ls-tree.c Ingo Molnar
2005-04-14 11:54   ` [patch] git: fix memory leaks in read-tree.c Ingo Molnar
2005-04-14 11:58   ` [patch] git: fix rare memory leak in rev-tree.c Ingo Molnar
2005-04-14 12:05     ` [patch] git: report parse_commit() errors " Ingo Molnar
2005-04-14 12:08 ` [patch] git: fix memory leak in show-diff.c Ingo Molnar
2005-04-14 12:18   ` [patch] git: fix overflow in update-cache.c Ingo Molnar
2005-04-14 12:23     ` [patch] cleanup: read_sha1_file() -> malloc_read_sha1_file() Ingo Molnar
2005-04-14 12:53     ` [patch] git: fix 1-byte overflow in show-files.c Ingo Molnar
2005-04-17 23:59       ` Petr Baudis
2005-04-18  8:28         ` Ingo Molnar
2005-04-14 13:03     ` [patch] git: fix memory leaks in update-cache.c Ingo Molnar
2005-04-14 13:08       ` [patch] git: clean up add_file_to_cache() " Ingo Molnar
2005-04-14 13:31       ` [patch] git: fix memory leak #3 " Ingo Molnar
2005-04-14 12:32   ` [patch] git: fix memory leaks in read-cache.c Ingo Molnar
2005-04-14 12:39     ` [patch] git: fix memory leak #2 " Ingo Molnar
2005-04-14 13:25       ` Ingo Molnar
2005-04-14 14:25         ` Martin Schlemmer
2005-04-14 15:11       ` Linus Torvalds
2005-04-14 15:14         ` Ingo Molnar
2005-04-14 13:12   ` [patch] git: fix memory leak in write-tree.c Ingo Molnar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).