ctx->propq is a duplicated string, but the error code does not free
the duplicated string's memory. If e.g. EVP_CIPHER_fetch() fails then
we can leak the string's memory.
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Kurt Roeckx <kurt@roeckx.be>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/25812)
(cherry picked from commit
8ff6edb9da6199b130bfb50bc27b2e58cc815932)
err:
EVP_CIPHER_free(ctx->aead_ciph);
+ OPENSSL_free(ctx->propq);
OPENSSL_free(ctx);
return NULL;
}