scrypt: free the MD reference correctly.
authorPauli <paul.dale@oracle.com>
Wed, 29 Jan 2020 23:04:14 +0000 (09:04 +1000)
committerPauli <paul.dale@oracle.com>
Fri, 31 Jan 2020 07:52:05 +0000 (17:52 +1000)
commit4a0a9e5767f23f684267eb19e412d26cb288930d
tree6b25b9bdc88ec101e53fb23cc1ced0c134423398
parentca2bf555cd64bc9624af1259ce3cd27f95a5763e
scrypt: free the MD reference correctly.

The code was calling EVP_MD_meth_free which is incorrect.  It should call
EVP_MD_free.  It happened to work but by luck rather than design.

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/10973)
providers/implementations/kdfs/scrypt.c