mirror of
https://git.zx2c4.com/cgit
synced 2025-08-30 22:49:41 +02:00
Add cgit_free_commitinfo() and use where needed
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
This commit is contained in:
parent
fa82b03e05
commit
aaa24bdd30
5 changed files with 15 additions and 8 deletions
10
shared.c
10
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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue