Fix memory leak: free up ENGINE functional reference if digest is not found in an ENGINE.
Fix memory leak: free up ENGINE functional reference if digest is not
found in an ENGINE.

openssl/openssl,openssl/openssl,openssl/openssl,openssl/openssl,openssl/openssl,openssl/openssl