From d2f1b9c0359848f53e3f884320553dd15d85eb7e Mon Sep 17 00:00:00 2001 From: olszomal Date: Mon, 27 Mar 2023 09:52:18 +0200 Subject: [PATCH] Fix leafhash resource leak, CID 1536899 --- osslsigncode.c | 1 + 1 file changed, 1 insertion(+) diff --git a/osslsigncode.c b/osslsigncode.c index a199121..607e960 100644 --- a/osslsigncode.c +++ b/osslsigncode.c @@ -1328,6 +1328,7 @@ static int verify_leaf_hash(X509 *cert, const char *leafhash) char *hash = strchr(mdid, ':'); if (hash == NULL) { printf("\nUnable to parse -require-leaf-hash parameter: %s\n", leafhash); + OPENSSL_free(mdid); return 0; /* FAILED */ } *hash++ = '\0';