X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=checkout-cache.c;h=a1ef9448c35fa76ea036faae1a789f0cb654198d;hb=2636f6143751a064e366cb7763d0705b296726e3;hp=d1661eb5f800a4db2e8934e87b710b94662a261a;hpb=32718b6c5e8dfe3ca39731b962ec6ada40407af4;p=git.git diff --git a/checkout-cache.c b/checkout-cache.c index d1661eb5..a1ef9448 100644 --- a/checkout-cache.c +++ b/checkout-cache.c @@ -39,7 +39,7 @@ static int force = 0, quiet = 0, not_new = 0; static void create_directories(const char *path) { int len = strlen(path); - char *buf = malloc(len + 1); + char *buf = xmalloc(len + 1); const char *slash = path; while ((slash = strchr(slash+1, '/')) != NULL) {