aboutsummaryrefslogtreecommitdiffstats
path: root/checkout-cache.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2005-04-14 08:26:38 +0200
committerJunio C Hamano <junkio@cox.net>2005-05-07 01:32:24 -0700
commit36997b45adeb8915978de5a927130873073683dd (patch)
tree426d5498868b5e0be078dacd899ac3328f97f67f /checkout-cache.c
parent383f85b72a41279f69a3a569420615761491b8a2 (diff)
downloadgit-36997b45adeb8915978de5a927130873073683dd.tar.gz
Date: Thu Apr 14 08:26:38 2005 +0200
Author: Ingo Molnar <mingo@elte.hu> [patch] git: fix memory leak in checkout-cache.c this patch fixes a memory leak in checkout-cache. Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Petr Baudis <pasky@ucw.cz> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'checkout-cache.c')
-rw-r--r--checkout-cache.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/checkout-cache.c b/checkout-cache.c
index 244ebd1226..64ce92147f 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)