[patch] git: fix memory leak in checkout-cache.c
- From
- Ingo Molnar <mingo@elte.hu>
- Date
- Apr 14, 2005, 11:26 UTC
- Message-ID
- <20050414112638.GA12593@elte.hu>
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)