From de5876f22cc59e56a3bdd1fe63935e09bbfc2593 Mon Sep 17 00:00:00 2001 From: Dmitry Belyavskiy Date: Sat, 2 May 2020 00:28:46 +0300 Subject: [PATCH] Free memory --- gost_pmeth.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gost_pmeth.c b/gost_pmeth.c index cac31e8..3f60210 100644 --- a/gost_pmeth.c +++ b/gost_pmeth.c @@ -193,6 +193,7 @@ static int pkey_gost_ec_ctrl_str_common(EVP_PKEY_CTX *ctx, return 0; } memcpy(ukm_buf, tmp, len); + OPENSSL_free(tmp); return pkey_gost_ctrl(ctx, EVP_PKEY_CTRL_SET_IV, len, ukm_buf); } -- 2.39.5