Add EVP_CIPHER_CTX_cleanup() to avoid memory leak.
This commit is contained in:
parent
4d1e5535b2
commit
e78a012305
@ -1393,6 +1393,7 @@ int MAIN(int argc, char **argv)
|
|||||||
else
|
else
|
||||||
EVP_EncryptFinal_ex(&ctx,buf,&outl);
|
EVP_EncryptFinal_ex(&ctx,buf,&outl);
|
||||||
d=Time_F(STOP);
|
d=Time_F(STOP);
|
||||||
|
EVP_CIPHER_CTX_cleanup(&ctx);
|
||||||
}
|
}
|
||||||
if (evp_md)
|
if (evp_md)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user