t7510: exit for loop with test result
[gitweb.git] / commit.c
index f4793316a21fe5f3ee1932f7e24cf4ab0920b04c..e9686b2df438bf9680e7ebcdd84c406b88e53ea6 100644 (file)
--- a/commit.c
+++ b/commit.c
@@ -1219,6 +1219,7 @@ void check_commit_signature(const struct commit* commit, struct signature_check
                                      &gpg_output, &gpg_status);
        if (status && !gpg_output.len)
                goto out;
+       sigc->payload = strbuf_detach(&payload, NULL);
        sigc->gpg_output = strbuf_detach(&gpg_output, NULL);
        sigc->gpg_status = strbuf_detach(&gpg_status, NULL);
        parse_gpg_output(sigc);