X-Git-Url: https://git.openssl.org/?p=openssl.git;a=blobdiff_plain;f=crypto%2Fec%2Fecx_meth.c;h=b88139218af076cdc525e9f061ac06b84c2e5997;hp=75ea96754fdd52a4b3a8ba856fd6b13853233632;hb=6ef03ea98fac501e6d6e33bac6ad3c92ea074712;hpb=1ce6044206a371680ea44219ea63dae2a1bba3d1 diff --git a/crypto/ec/ecx_meth.c b/crypto/ec/ecx_meth.c index 75ea96754f..b88139218a 100644 --- a/crypto/ec/ecx_meth.c +++ b/crypto/ec/ecx_meth.c @@ -195,7 +195,7 @@ static int ecx_priv_decode(EVP_PKEY *pkey, const PKCS8_PRIV_KEY_INFO *p8) } rv = ecx_key_op(pkey, pkey->ameth->pkey_id, palg, p, plen, KEY_OP_PRIVATE); - ASN1_OCTET_STRING_free(oct); + ASN1_STRING_clear_free(oct); return rv; }