MALLOC_CHECK: various clean-ups
[gitweb.git] / builtin / branch.c
index 5cb6d78f2c472cc6e579bf6618898f0e44e5ef03..ffd26849c7ad20ff470323621486ae8a2aeb2501 100644 (file)
@@ -197,7 +197,7 @@ static int delete_branches(int argc, const char **argv, int force, int kinds,
 
                free(name);
 
-               name = xstrdup(mkpath(fmt, bname.buf));
+               name = mkpathdup(fmt, bname.buf);
                if (read_ref(name, sha1)) {
                        error(remote_branch
                              ? _("remote branch '%s' not found.")