Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
[patch] git: fix overflow in update-cache.c
[gitweb.git]
/
checkout-cache.c
diff --git
a/checkout-cache.c
b/checkout-cache.c
index 244ebd122601883e15e8aefea33c7daf8249d862..64ce92147fdf200798be2578ddb051f9115a7ba5 100644
(file)
--- 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)