diff options
author | Lars Hjemli <hjemli@gmail.com> | 2006-12-16 14:58:20 +0100 |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2006-12-16 14:58:20 +0100 |
commit | aaa24bdd30303128bded8487cd9f63b54c3b8dcd (patch) | |
tree | 0fd8b32643c205d819f98a827eca3e78fad21bfa /shared.c | |
parent | Simplify ui-commit.c (diff) | |
download | cgit-pink-aaa24bdd30303128bded8487cd9f63b54c3b8dcd.tar.gz cgit-pink-aaa24bdd30303128bded8487cd9f63b54c3b8dcd.zip |
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.c | 10 |
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) } } +void *cgit_free_commitinfo(struct commitinfo *info) +{ + free(info->author); + free(info->author_email); + free(info->committer); + free(info->committer_email); + free(info->subject); + free(info); + return NULL; +} |