]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-commit.c
Add cgit_free_commitinfo() and use where needed
[ps-cgit] / ui-commit.c
index b441e143b3ac1daec60b3b416b14610aef82785e..f654208e187e5212c26826d943c3732682e098f9 100644 (file)
@@ -61,8 +61,5 @@ void cgit_print_commit(const char *hex)
        html("<div class='commit-msg'>");
        html_txt(info->msg);
        html("</div>");
-       free(info->author);
-       free(info->committer);
-       free(info->subject);
-       free(info);
+       cgit_free_commitinfo(info);
 }