summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Ingo Molnar <mingo@elte.hu>2005-04-14 08:26:38 +0200
committerLibravatar Junio C Hamano <junkio@cox.net>2005-05-07 01:32:24 -0700
commit36997b45adeb8915978de5a927130873073683dd (patch)
tree426d5498868b5e0be078dacd899ac3328f97f67f
parentFree compressed buffer after write_sha1_file() is done. (diff)
downloadtgif-36997b45adeb8915978de5a927130873073683dd.tar.xz
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>
-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)