diff options
author | Ingo Molnar <mingo@elte.hu> | 2005-04-14 10:26:38 +0400 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-05-07 12:32:24 +0400 |
commit | 36997b45adeb8915978de5a927130873073683dd (patch) | |
tree | 426d5498868b5e0be078dacd899ac3328f97f67f /checkout-cache.c | |
parent | 383f85b72a41279f69a3a569420615761491b8a2 (diff) |
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.c | 1 |
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) |