提交 ac8b4ee0 编写于 作者: D Dr. Stephen Henson

Make DH_free() free up any ex_data and also call the finish method.

上级 2d4287da
......@@ -143,6 +143,10 @@ void DH_free(DH *r)
}
#endif
CRYPTO_free_ex_data(dh_meth, (char *)r, &r->ex_data);
if(r->meth->finish) r->meth->finish(r);
if (r->p != NULL) BN_clear_free(r->p);
if (r->g != NULL) BN_clear_free(r->g);
if (r->pub_key != NULL) BN_clear_free(r->pub_key);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册