Add cgit_free_commitinfo() and use where needed Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 16 Dec 2006 14:58:20 +0100
5 files changed,
15 insertions(+),
8 deletions(-)
M
cgit.h
→
cgit.h
@@ -65,6 +65,8 @@ extern void cgit_global_config_cb(const char *name, const char *value);
extern void cgit_repo_config_cb(const char *name, const char *value); extern void cgit_querystring_cb(const char *name, const char *value); +extern void *cgit_free_commitinfo(struct commitinfo *info); + extern char *fmt(const char *format,...); extern void html(const char *txt);
M
ui-commit.c
→
ui-commit.c
@@ -61,8 +61,5 @@ html("</div>");
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); }
M
ui-summary.c
→
ui-summary.c
@@ -35,6 +35,7 @@ html_link_close();
html("</td><td>"); html_txt(info->author); html("</td></tr>\n"); + cgit_free_commitinfo(info); } else { html("<tr><td>"); html_txt(buf);