X-Git-Url: http://wagner.pp.ru/gitweb/?a=blobdiff_plain;f=gost_grasshopper_cipher.c;h=9df7bbc7b12756d9956cdfb51b7a3351fc56404c;hb=7e6ed644cf97385a95544fcc889e2eb16bcc93ed;hp=ba353c21850a4791f3a0cd56b7ed4fab76d8bc9d;hpb=20f99cd4df48ed150937a82cc57f233cadcc7c7e;p=openssl-gost%2Fengine.git diff --git a/gost_grasshopper_cipher.c b/gost_grasshopper_cipher.c index ba353c2..9df7bbc 100644 --- a/gost_grasshopper_cipher.c +++ b/gost_grasshopper_cipher.c @@ -713,6 +713,7 @@ int gost_grasshopper_set_asn1_parameters(EVP_CIPHER_CTX *ctx, ASN1_TYPE *params) os = ASN1_OCTET_STRING_new(); if (!os || !ASN1_OCTET_STRING_set(os, buf, len)) { + ASN1_OCTET_STRING_free(os); OPENSSL_free(buf); GOSTerr(GOST_F_GOST_GRASSHOPPER_SET_ASN1_PARAMETERS, ERR_R_MALLOC_FAILURE);