From: Dmitry Belyavskiy Date: Thu, 10 Mar 2016 17:48:11 +0000 (+0300) Subject: Memory leak fix X-Git-Tag: v1.1.0.2~27 X-Git-Url: http://wagner.pp.ru/gitweb/?a=commitdiff_plain;h=9d2382ed19fe17464f3caee84368b357fa2f2a10;p=openssl-gost%2Fengine.git Memory leak fix --- diff --git a/gost_pmeth.c b/gost_pmeth.c index 2d580ae..ca824ff 100644 --- a/gost_pmeth.c +++ b/gost_pmeth.c @@ -633,11 +633,13 @@ static int pkey_gost_mac_ctrl_str(EVP_PKEY_CTX *ctx, } param = get_encryption_params(obj); + ASN1_OBJECT_free(obj); if (param == NULL) { GOSTerr(GOST_F_PKEY_GOST_MAC_CTRL_STR, GOST_R_INVALID_MAC_PARAMS); return 0; } + return pkey_gost_mac_ctrl(ctx, EVP_PKEY_CTRL_GOST_PARAMSET, 0, (void *)param); }