From: Dmitry Belyavskiy Date: Mon, 14 Oct 2019 14:28:41 +0000 (+0300) Subject: Fix of potential memory leak X-Git-Tag: v3.0.0~263^2~5 X-Git-Url: http://wagner.pp.ru/gitweb/?a=commitdiff_plain;h=61e79419da453fb58d9ae24f0f602a9250e50fc0;p=openssl-gost%2Fengine.git Fix of potential memory leak Fixes #178 --- diff --git a/gost_omac_acpkm.c b/gost_omac_acpkm.c index 793a6d3..c22524a 100644 --- a/gost_omac_acpkm.c +++ b/gost_omac_acpkm.c @@ -68,6 +68,7 @@ static CMAC_ACPKM_CTX *CMAC_ACPKM_CTX_new(void) } ctx->actx = EVP_CIPHER_CTX_new(); if (ctx->actx == NULL) { + EVP_CIPHER_CTX_free(ctx->cctx); OPENSSL_free(ctx); return NULL; }