]> wagner.pp.ru Git - openssl-gost/engine.git/commitdiff
Memory leak fix
authorDmitry Belyavskiy <beldmit@gmail.com>
Thu, 10 Mar 2016 17:48:11 +0000 (20:48 +0300)
committerDmitry Belyavskiy <beldmit@gmail.com>
Thu, 10 Mar 2016 17:48:11 +0000 (20:48 +0300)
gost_pmeth.c

index 2d580ae1d9228d0e264e0eb1d328db6c0aa400f5..ca824ffce78948b8f222ad3b903cbb1e300f3128 100644 (file)
@@ -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);
     }