From 36997b45adeb8915978de5a927130873073683dd Mon Sep 17 00:00:00 2001 From: Ingo Molnar Date: Thu, 14 Apr 2005 08:26:38 +0200 Subject: [PATCH] Date: Thu Apr 14 08:26:38 2005 +0200 Author: Ingo Molnar [patch] git: fix memory leak in checkout-cache.c this patch fixes a memory leak in checkout-cache. Signed-off-by: Ingo Molnar Signed-off-by: Petr Baudis Signed-off-by: Junio C Hamano --- checkout-cache.c | 1 + 1 file changed, 1 insertion(+) diff --git a/checkout-cache.c b/checkout-cache.c index 244ebd12..64ce9214 100644 --- a/checkout-cache.c +++ b/checkout-cache.c @@ -48,6 +48,7 @@ static void create_directories(const char *path) buf[len] = 0; mkdir(buf, 0755); } + free(buf); } static int create_file(const char *path, unsigned int mode) -- 2.11.0