die("No current branch");
if (!prefixcmp(current_branch, "refs/heads/"))
current_branch += 11;
+ current_branch = xstrdup(current_branch);
/* get a line */
while (pos < in->len) {
}
strbuf_complete_line(out);
+ free((char *)current_branch);
return 0;
}