X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/f7f26f88755ac6a3b9af4918b51b0d6e7a692c78..936295c4e4de8da83701c67377a911a0aefbcbd6:/ui-atom.c diff --git a/ui-atom.c b/ui-atom.c index 838f220..e2b39ee 100644 --- a/ui-atom.c +++ b/ui-atom.c @@ -108,7 +108,7 @@ void cgit_print_atom(char *tip, char *path, int max_count) host = cgit_hosturl(); ctx.page.mimetype = "text/xml"; ctx.page.charset = "utf-8"; - cgit_print_http_headers(&ctx); + cgit_print_http_headers(); html("\n"); html(""); html_txt(ctx.repo->name); @@ -133,8 +133,7 @@ void cgit_print_atom(char *tip, char *path, int max_count) } while ((commit = get_revision(&rev)) != NULL) { add_entry(commit, host); - free(commit->buffer); - commit->buffer = NULL; + free_commit_buffer(commit); free_commit_list(commit->parents); commit->parents = NULL; }