mirror of
https://git.zx2c4.com/cgit
synced 2024-11-25 18:08:41 +00:00
ui-atom: fix resource leak: free before return
Coverity-id: 13946 Signed-off-by: Christian Hesse <mail@eworm.de>
This commit is contained in:
parent
97da17b783
commit
144e3c6085
@ -80,7 +80,7 @@ static void add_entry(struct commit *commit, const char *host)
|
||||
|
||||
void cgit_print_atom(char *tip, char *path, int max_count)
|
||||
{
|
||||
const char *host;
|
||||
char *host;
|
||||
const char *argv[] = {NULL, tip, NULL, NULL, NULL};
|
||||
struct commit *commit;
|
||||
struct rev_info rev;
|
||||
@ -140,4 +140,5 @@ void cgit_print_atom(char *tip, char *path, int max_count)
|
||||
commit->parents = NULL;
|
||||
}
|
||||
html("</feed>\n");
|
||||
free(host);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user