diff options
author | Kurt Roeckx <kurt@roeckx.be> | 2020-12-17 22:28:17 +0100 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2021-01-18 15:26:29 +0100 |
commit | 47b784a41b729d5df9ad47c99355db2f2026a709 (patch) | |
tree | a12a2f2be9acddc71ff8d388a4f3c030bdd34681 /providers | |
parent | 038f4dc68edd16f719ce5cf140eda2fb5b86a62a (diff) |
Fix memory leak in mac_newctx() on error
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/13702)
Diffstat (limited to 'providers')
-rw-r--r-- | providers/implementations/signature/mac_legacy.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/providers/implementations/signature/mac_legacy.c b/providers/implementations/signature/mac_legacy.c index b92dabde3c..79a5c911a3 100644 --- a/providers/implementations/signature/mac_legacy.c +++ b/providers/implementations/signature/mac_legacy.c @@ -74,6 +74,7 @@ static void *mac_newctx(void *provctx, const char *propq, const char *macname) return pmacctx; err: + OPENSSL_free(pmacctx->propq); OPENSSL_free(pmacctx); EVP_MAC_free(mac); return NULL; |