aboutsummaryrefslogtreecommitdiffstats
path: root/libparc/parc/security
diff options
context:
space:
mode:
Diffstat (limited to 'libparc/parc/security')
-rw-r--r--libparc/parc/security/parc_PublicKeySigner.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libparc/parc/security/parc_PublicKeySigner.c b/libparc/parc/security/parc_PublicKeySigner.c
index 4122b992..3c70a139 100644
--- a/libparc/parc/security/parc_PublicKeySigner.c
+++ b/libparc/parc/security/parc_PublicKeySigner.c
@@ -186,6 +186,7 @@ static inline int _SignDigestRSA(const PARCCryptoHash *digestToSign, PARCBuffer
sigLength,
rsa);
assertTrue(result == 1, "Got error from RSA_sign: %d", result);
+ EVP_PKEY_free(privateKey);
RSA_free(rsa);
return result;
}
@@ -289,6 +290,7 @@ _GetSignatureSize(PARCPublicKeySigner *signer)
size = RSA_size(rsa);
RSA_free(rsa);
+ EVP_PKEY_free(privateKey);
break;
}
case PARCSigningAlgorithm_ECDSA:
@@ -302,6 +304,7 @@ _GetSignatureSize(PARCPublicKeySigner *signer)
size = ECDSA_size(ec_key);
EC_KEY_free(ec_key);
+ EVP_PKEY_free(privateKey);
break;
}
}