From: Ingo Molnar Date: Thu, 14 Apr 2005 06:26:38 +0000 (+0200) Subject: Date: Thu Apr 14 08:26:38 2005 +0200 X-Git-Tag: v0.99~603^2~22 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=36997b45adeb8915978de5a927130873073683dd;p=git.git 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 --- diff --git a/checkout-cache.c b/checkout-cache.c index 244ebd122..64ce92147 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)