]> git.cameronkatri.com Git - cgit.git/blobdiff - cgit.c
cgit.c: free tmp variable
[cgit.git] / cgit.c
diff --git a/cgit.c b/cgit.c
index ec8f69c26f13dab83b894c661a35fd9740e92ce1..09fce0c7a49163a902a0e6675d9d8dbd7ee26465 100644 (file)
--- a/cgit.c
+++ b/cgit.c
@@ -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);