parse_color: refactor color storage
[gitweb.git] / gpg-interface.c
index e71b59daf67b28f0699035e7834bb6c0b56c5425..ff07012726ea28daa2551966d0555d2e8efa2375 100644 (file)
@@ -9,10 +9,12 @@ static const char *gpg_program = "gpg";
 
 void signature_check_clear(struct signature_check *sigc)
 {
+       free(sigc->payload);
        free(sigc->gpg_output);
        free(sigc->gpg_status);
        free(sigc->signer);
        free(sigc->key);
+       sigc->payload = NULL;
        sigc->gpg_output = NULL;
        sigc->gpg_status = NULL;
        sigc->signer = NULL;