]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-log.c
Add cgit_free_commitinfo() and use where needed
[ps-cgit] / ui-log.c
index c52af79ac5ffb876bd4e41211fda907baa0f629b..b7da49fda6d239934e542bbc9d15f64c9d3ae07e 100644 (file)
--- a/ui-log.c
+++ b/ui-log.c
@@ -28,10 +28,7 @@ void print_commit(struct commit *commit)
        html("</td><td>");
        html_txt(info->author);
        html("</td></tr>\n");
-       free(info->author);
-       free(info->committer);
-       free(info->subject);
-       free(info);
+       cgit_free_commitinfo(info);
 }