X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/7996157f14d99ee6d26c042816e12bd9089c1efb..ef8a97d9c6983e4fc3710bdbe771edd4e3550dba:/ui-commit.c?ds=inline 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("
");