cgit.c: free tmp variable

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Jason A. Donenfeld 2014-01-17 00:48:17 +01:00
parent f60ffa143c
commit 9999b0a3e9

1
cgit.c
View File

@ -591,6 +591,7 @@ static int prepare_repo_cmd(void)
cgit_print_pageheader();
cgit_print_error("Invalid branch: %s", tmp);
cgit_print_docend();
free(tmp);
return 1;
}
sort_string_list(&ctx.repo->submodules);