aboutsummaryrefslogtreecommitdiffstats
path: root/shared.c
diff options
context:
space:
mode:
authorGravatar Lars Hjemli <hjemli@gmail.com>2006-12-16 22:58:20 (JST)
committerGravatar Lars Hjemli <hjemli@gmail.com>2006-12-16 22:58:20 (JST)
commitaaa24bdd30303128bded8487cd9f63b54c3b8dcd (patch)
tree0fd8b32643c205d819f98a827eca3e78fad21bfa /shared.c
parentfa82b03e05366e3c6ca1b74c8c83d6e00e0ef1e6 (diff)
downloadcgit-aaa24bdd30303128bded8487cd9f63b54c3b8dcd.zip
cgit-aaa24bdd30303128bded8487cd9f63b54c3b8dcd.tar.gz
Add cgit_free_commitinfo() and use where needed
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to 'shared.c')
-rw-r--r--shared.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/shared.c b/shared.c
index 4574120..b576df8 100644
--- a/shared.c
+++ b/shared.c
@@ -88,3 +88,13 @@ void cgit_querystring_cb(const char *name, const char *value)
88 } 88 }
89} 89}
90 90
91void *cgit_free_commitinfo(struct commitinfo *info)
92{
93 free(info->author);
94 free(info->author_email);
95 free(info->committer);
96 free(info->committer_email);
97 free(info->subject);
98 free(info);
99 return NULL;
100}