From: Ingo Molnar Date: Thu, 14 Apr 2005 11:26:38 GMT Subject: [patch] git: fix memory leak in checkout-cache.c Message-ID: <20050414112638.GA12593@elte.hu> this patch fixes a memory leak in checkout-cache. Ingo Signed-off-by: Ingo Molnar --- 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)