Merge branch 'jk/misc-fixes-maint'
* jk/misc-fixes-maint: apply: avoid possible bogus pointer fix memory leak parsing core.commentchar transport: fix leaks in refs_from_alternate_cb free ref string returned by dwim_ref receive-pack: don't copy "dir" parameter
This commit is contained in:
@ -777,6 +777,7 @@ int cmd_show_branch(int ac, const char **av, const char *prefix)
|
||||
sprintf(nth_desc, "%s@{%d}", *av, base+i);
|
||||
append_ref(nth_desc, sha1, 1);
|
||||
}
|
||||
free(ref);
|
||||
}
|
||||
else if (all_heads + all_remotes)
|
||||
snarf_refs(all_heads, all_remotes);
|
||||
|
Reference in New Issue
Block a user