The branch OpenSSL_1_1_1-stable has been updated via 15d1ddde5de9d28b671d3f6fe8757f4b87e67821 (commit) from 5d91c74fa3fcd8c17184ab8f51745de8354f7362 (commit)
- Log ----------------------------------------------------------------- commit 15d1ddde5de9d28b671d3f6fe8757f4b87e67821 Author: zhaozg <zha...@gmail.com> Date: Wed Aug 18 15:40:22 2021 +0800 ts: fix memleaks caused by TS_VERIFY_CTX_set_imprint CLA: trivial Reviewed-by: Paul Dale <pa...@openssl.org> Reviewed-by: Tomas Mraz <to...@openssl.org> (Merged from https://github.com/openssl/openssl/pull/16347) (cherry picked from commit 62bae84d4587ec9a56d0ce830e36e4a5b2fa8a33) ----------------------------------------------------------------------- Summary of changes: crypto/ts/ts_verify_ctx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/crypto/ts/ts_verify_ctx.c b/crypto/ts/ts_verify_ctx.c index 32cd2f542b..b504649a41 100644 --- a/crypto/ts/ts_verify_ctx.c +++ b/crypto/ts/ts_verify_ctx.c @@ -70,6 +70,7 @@ STACK_OF(X509) *TS_VERIFY_CTS_set_certs(TS_VERIFY_CTX *ctx, unsigned char *TS_VERIFY_CTX_set_imprint(TS_VERIFY_CTX *ctx, unsigned char *hexstr, long len) { + OPENSSL_free(ctx->imprint); ctx->imprint = hexstr; ctx->imprint_len = len; return ctx->imprint;