]> wagner.pp.ru Git - openssl-gost/engine.git/commitdiff
Free memory
authorDmitry Belyavskiy <beldmit@gmail.com>
Fri, 1 May 2020 21:28:46 +0000 (00:28 +0300)
committerDmitry Belyavskiy <beldmit@gmail.com>
Fri, 1 May 2020 21:28:46 +0000 (00:28 +0300)
gost_pmeth.c

index cac31e8671cb95a0284eaaf355d6fb2d28b9fbd7..3f60210773418d110c3757294f8d6616ea24b044 100644 (file)
@@ -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);
   }