X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/1de3048d08fc6491630c45437f88f5ab03c0508f..5f323c1ff45c10d8f8b0a673d2fe7e98272f5d78:/ui-commit.c diff --git a/ui-commit.c b/ui-commit.c index 536a8e8..0783285 100644 --- a/ui-commit.c +++ b/ui-commit.c @@ -39,7 +39,7 @@ void cgit_print_commit(char *hex, const char *prefix) format_note(NULL, sha1, ¬es, PAGE_ENCODING, 0); load_ref_decorations(DECORATE_FULL_REFS); - + cgit_print_diff_ctrls(); html("\n"); html("\n"); - for (p = commit->parents; p ; p = p->next) { + for (p = commit->parents; p; p = p->next) { parent = lookup_commit_reference(p->item->object.sha1); if (!parent) { html("
author"); @@ -74,8 +74,9 @@ void cgit_print_commit(char *hex, const char *prefix) html(" /"); cgit_tree_link(prefix, NULL, NULL, ctx.qry.head, tmp, prefix); } + free(tmp); html("
");