提交 91395476 编写于 作者: B Ben Laurie

Free engine on error.

Reviewed-by: NMatt Caswell <matt@openssl.org>
上级 04630522
...@@ -1671,6 +1671,9 @@ void engine_load_cryptodev_int(void) ...@@ -1671,6 +1671,9 @@ void engine_load_cryptodev_int(void)
cryptodev_rsa_nocrt_mod_exp); cryptodev_rsa_nocrt_mod_exp);
} }
} }
} else {
ENGINE_free(engine);
return;
} }
#ifndef OPENSSL_NO_DSA #ifndef OPENSSL_NO_DSA
...@@ -1708,6 +1711,9 @@ void engine_load_cryptodev_int(void) ...@@ -1708,6 +1711,9 @@ void engine_load_cryptodev_int(void)
cryptodev_dh_compute_key); cryptodev_dh_compute_key);
} }
} }
} else {
ENGINE_free(engine);
return;
} }
#endif #endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册